This is a tough one.  IMHO, it is a weakness of Hibernate.

Anyway, "fixed" the problem by modifying Hibernate.  (Yes, I have customized
and misused both Tapestry and Hibernate to serve my own purposes... ah, the
beauty of open source!)  I made modifications to
AbstractPersistentCollection and AbstractLazyInitializer so that they would
open a new session (then close it later) instead of throwing an exception.
Right now my custom versions contain some application-specific code to
access my SessionFactory (which is stored in a singleton object), since I
haven't yet come up with a cleaner solution.

-Nathan


----- Original Message ----- 
From: "Juan Esteban Maya" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>; "pepone pepone"
<[EMAIL PROTECTED]>
Sent: Tuesday, May 17, 2005 7:00 AM
Subject: Hibernate + Spring: LazyInitializationException


Hi..
I have been trying to use Tapestry with Spring + Hibernate 3.
I have follow the wiki help about this issue, but i keep getting a
LazyInitializationException everytime i load a lazy relation. Is there
anything more needed to get hibernate lazy loading working?

Thanks in advance


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to