Revision 2e93b829
Added by Cherian Mathew over 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewCollectionWizard.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2007 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
... | ... | |
29 | 29 |
public void addPages() { |
30 | 30 |
addPage(new CollectionWizardPage(formFactory, getConversationHolder(), getEntity())); |
31 | 31 |
} |
32 |
|
|
32 |
|
|
33 | 33 |
/* (non-Javadoc) |
34 | 34 |
* @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#saveEntity() |
35 | 35 |
*/ |
36 | 36 |
/** {@inheritDoc} */ |
37 | 37 |
@Override |
38 | 38 |
protected void saveEntity() { |
39 |
CdmStore.getService(ICollectionService.class).saveOrUpdate(getEntity());
|
|
39 |
CdmStore.getService(ICollectionService.class).merge(getEntity());
|
|
40 | 40 |
} |
41 | 41 |
|
42 | 42 |
/* (non-Javadoc) |
... | ... | |
52 | 52 |
protected String getEntityName() { |
53 | 53 |
return "Collection"; |
54 | 54 |
} |
55 |
|
|
55 |
|
|
56 | 56 |
} |
Also available in: Unified diff
#5225 Replace saveOrUpdate with merge for new entity wizards