openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abe White <>
Subject Re: Replacing Entities while Managed
Date Wed, 08 Nov 2006 17:27:04 GMT
> The merge operation takes as a parameter a detached instance, not a  
> new instance.
> TopLink Essentials might not be able to tell the difference between  
> a detached and a new instance. So it might work in that environment.
> But the behavior you're describing is not portable.

That said, you can probably fool OpenJPA into attaching a new  
instance if you want to.  The documentation describes the general  
heuristics OpenJPA uses to determine whether an instance is detached: 
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

View raw message