comparison src/main/java/de/intevation/lada/manage/DataManager.java @ 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 a305412206a3
children 9d5e4d4eb90f
comparison
equal deleted inserted replaced
319:e125bbe98014 320:6621f7345c06
35 public void create(Object object) 35 public void create(Object object)
36 throws EntityExistsException, 36 throws EntityExistsException,
37 IllegalArgumentException, 37 IllegalArgumentException,
38 EJBTransactionRolledbackException, 38 EJBTransactionRolledbackException,
39 TransactionRequiredException { 39 TransactionRequiredException {
40 em.persist(object); 40 em.merge(object);
41 //em.persist(object);
41 } 42 }
42 43
43 /** 44 /**
44 * Update a database object. 45 * Update a database object.
45 * 46 *
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)