openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: cant update a detached instance
Date Mon, 18 Aug 2008 15:02:57 GMT

Hi,
   Possibility:

  > Box box = boxDao.findNextFreeBox(BoxType.STANDARD); //  
  Does this 'box' an existing persistent box, possibly with _version = 1? 

  > where boxDao.save() is only a wrapper to em.persist(object)
then this box should be merged. Attempted to persist() will hit the
DuplicateKey exception at database which is getting translated to
EntityExistsException to the application.


-- 
View this message in context: http://n2.nabble.com/cant-update-a-detached-instance-tp730836p730948.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message