Replace saveOrUpdate with merge
authorCherian Mathew <c.mathew@bgbm.org>
Mon, 7 Sep 2015 16:35:15 +0000 (18:35 +0200)
committerCherian Mathew <c.mathew@bgbm.org>
Mon, 7 Sep 2015 16:35:15 +0000 (18:35 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/operation/MoveDescriptionToOtherTaxonOperation.java

index 84146211ed2a6fa33ece6486d62908b6a143b5d2..aeac3d41eb92ebb43a98133a73a24f1b3f799a32 100644 (file)
@@ -89,7 +89,7 @@ public class MoveDescriptionToOtherTaxonOperation extends
                annotation.setAnnotationType(AnnotationType.TECHNICAL());
                description.addAnnotation(annotation);
                newAcceptedTaxonNode.getTaxon().addDescription(description);
-               CdmStore.getService(IDescriptionService.class).saveOrUpdate(description);
+               CdmStore.getService(IDescriptionService.class).merge(description);
                monitor.worked(40);
 
                return postExecute(description);