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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply 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: 26
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Fetching a reference in an entity which is no longer managed
 
Similar Threads
problem preventing initialization associated entity
SCEA 5 / 1 - JPA question
Eager Fetching a Polymorphic SET
how to refer one table in second many times?
failed to lazily initialize