aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Fetching a reference in an entity which is no longer  managed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Fetching a reference in an entity which is no longer  managed" Watch "Fetching a reference in an entity which is no longer  managed" New topic
Author

Fetching a reference in an entity which is no longer managed

Moses Marfo
Greenhorn

Joined: May 24, 2009
Posts: 27
Hi,

Condition
Entity A reference Entity B and the Fetch type for B is LAZY.

The question is will I be able to access entity B(A.getB()) on the client side where entity A is detached from the persistent context
or I have to set the fetch type to EAGER to do this?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fetching a reference in an entity which is no longer managed