The problem with reattachment is that I have to do it, it's not automatically.
I don't understand why Hibernate can't simply open a new session when
the one wich has is closed.
I supose I'll have to patch it in my Hibernate's source, and wait
until it becames a new feature in future releases of Hibernate. Lazy
initialization is an important key in persistence performance.

On 5/18/05, Joel Trunick <[EMAIL PROTECTED]> wrote:
> 
> Or you could fix it by using another open source project, Cayenne.
> Cayenne objects know their context.
> 
> J
> 
> -----Original Message-----
> From: Nathan Kopp [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 17, 2005 10:24 PM
> To: Tapestry users
> Subject: Re: Hibernate + Spring: LazyInitializationException
> 
> 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]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to