This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Fetching a reference in an entity which is no longer managed
 
It's not a secret anymore!