users@glassfish.java.net

Re: merging entities with lazy loaded relationship

From: <glassfish_at_javadesktop.org>
Date: Mon, 28 Apr 2008 16:44:52 PDT

By default only @...ToMany fields/properties have FetchType.LAZY. All @Basic and @...ToOne mappings are eagerly loaded by default.

Now, merging lazy relationships is a problem if the relationship hasn't been fetched before an instance had beem detached, or if the value is null at the time of merge - as it's not clear if null means not fetched or set explicitly by the client.

Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

http://forums.java.net/jive/thread.jspa?messageID=271910