cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: ObjectContext.localObject refactoring
Date Mon, 05 Sep 2011 15:57:58 GMT

On Sep 5, 2011, at 10:23 AM, Mike Kienenberger wrote:

> By the way, JPA.merge() is not close enough to localCopy() to use.
> Merge is more of a "update the object if it already exists rather than
> inserting a new one at commit".   I think merge() would be a bad
> choice.

Yep, "merge" is different. Merge is more related to our earlier discussions on supporting
working with detached objects, while "localObject" is for normal Cayenne registered objects.

Andrus
Mime
View raw message