Hi Steve,

 

Thanks for the help.  I have all of my collections mapped as lazy=”false”.  Everything I’ve tried ends with:

 

- could not initialize proxy - the owning Session was closed

org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed

 

Any idea what I might be forgetting?

 

Ryan

 


From: Steven Shaw [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 7:22 PM
To: [email protected]
Subject: Re: [flexcoders] Hibernate

 

You will want to watch your server log closely as you probably are getting errors in there about lazy instantiation. Putting lazy="true" in your mapping file does not guarantee that the association will be instantiated. It depends in max-fetch-depth and perhaps other things. You could try using Hibernate.initialize(<collection>) to ensure it is initialised before allowing AMF to get at it.

Steve.



Yahoo! Groups Links

Reply via email to