users@glassfish.java.net

Re: sth doubt about detached entity

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 Aug 2008 07:36:54 PDT

Hello,

My interpretation is that the specification does not say what will happen when an entity is detached and you access a previously unaccessed lazily loaded relation. Since it does not mandate throwing an exception, leaving it null or populating it, the choice of what to do seems up to the provider.

This is discussed in a few places.
  http://forums.java.net/jive/thread.jspa?messageID=204393
  and http://forums.oracle.com/forums/thread.jspa?messageID=1706796
describe it a bit more.

Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]

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