A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB Certification (SCBCD/OCPJBCD)
Fetching a reference in an entity which is no longer managed
Joined: May 24, 2009
Jun 10, 2010 12:00:07
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:
subject: Fetching a reference in an entity which is no longer managed
how to refer one table in second many times?
problem preventing initialization associated entity
failed to lazily initialize
SCEA 5 / 1 - JPA question
Eager Fetching a Polymorphic SET
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014