openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: Issue in Handling persistent objects across multiple persistence contexts
Date Tue, 10 Mar 2009 07:24:19 GMT

Hi,
  OpenJPA uses a series of decisions to determine whether a given argument x
as in merge(x) is a detached instance of not. The most obvious of this
decisions is based on a version field in the entity. So the first suggestion
will be to add a @Version field, if it is not defined already. 
  If OpenJPA is inserting the merge entity, most likely that it has no
version field and no detached state (another mechanism OpenJPA uses that
adds few extra bits in the detached version of the instance). 

  
-- 
View this message in context: http://n2.nabble.com/Issue-in-Handling-persistent-objects-across-multiple-persistence-contexts-tp2449327p2453664.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message