This content has been marked as final.
Show 3 replies
-
1. Re: LazyInitializationException explination
waynebaylor Jul 5, 2007 6:18 PM (in response to deanouk)Are you calling size() before the transaction ends?
-
2. Re: LazyInitializationException explination
deanouk Jul 6, 2007 3:33 AM (in response to deanouk)size() is being called in a JSP page, i.e. after the http request, so presumably after the session has been closed?
-
3. Re: LazyInitializationException explination
fhh Jul 6, 2007 4:42 AM (in response to deanouk)If you want to know the size of a collection it has to be fetched. So using fetch-type eager is the best approach.
Regards
Felix