This content has been marked as final.
Show 3 replies
-
1. Re: Eager Fetching in certain conditions
tefron Aug 9, 2006 5:53 PM (in response to sjmenden)Usually a lazy exception is a sign the your hibernate session is either closed or doesn't contaion the specific object, in which case an eager fetch won't help...
consider merging/updating your object into the session or keep the originall session opened.
T. -
2. Re: Eager Fetching in certain conditions
sjmenden Aug 10, 2006 9:22 AM (in response to sjmenden)I understand that, however, a stateless EJB can not have a an extended persistence context from what I've found.
I'm wondering if there is a way to tell the query to eagerly fetch all of the associations for this special case. -
3. Re: Eager Fetching in certain conditions
tefron Aug 10, 2006 11:05 AM (in response to sjmenden)you can specify the attribute lazy="false" but I don't think this is the best solution to load all the references at once...