RE: Struts-EL with Hibernate and LazyInitializationException (no session)

2004-12-20 Thread Marius Botha
at that time and that is when I get the exception. Thanks again. Marius -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: 21 December 2004 07:07 To: Struts Users Mailing List Subject: RE: Struts-EL with Hibernate and LazyInitializationException (no session) Mariu

RE: Struts-EL with Hibernate and LazyInitializationException (no session)

2004-12-20 Thread David G. Friedman
Marius, In Hibernate when you use Lazy initialization it means no attempt is made to read your data from the database UNTIL you ask for a component of the object. So, if you save your object to a scope (request, session, tile, application) and close your "session" object. You might get around th