changeset 320:6621f7345c06

Use 'merge' instead of 'persist' since it saves detached objects, too.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 23 Aug 2013 11:32:21 +0200
parents e125bbe98014
children 5844d7457dde
files src/main/java/de/intevation/lada/manage/DataManager.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/manage/DataManager.java	Fri Aug 23 11:30:56 2013 +0200
+++ b/src/main/java/de/intevation/lada/manage/DataManager.java	Fri Aug 23 11:32:21 2013 +0200
@@ -37,7 +37,8 @@
         IllegalArgumentException,
         EJBTransactionRolledbackException,
         TransactionRequiredException {
-        em.persist(object);
+        em.merge(object);
+        //em.persist(object);
     }
 
     /**
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)