-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: LazyInitializationException
PostPosted: Mon Aug 29, 2005 10:38 am 
Beginner
Beginner

Joined: Thu Jun 30, 2005 5:07 am
Posts: 33
Hi All,

I just finished imigrating from Hibernate 2 to 3. However every time I run my code I get org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed.

When I add lazy="false" to the class I have no problem! why?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 10:51 am 
Expert
Expert

Joined: Wed Apr 06, 2005 5:03 pm
Posts: 273
Location: Salt Lake City, Utah, USA
Default of 'lazy' attribute changed from false to true in H3. Read the migration guide: http://www.hibernate.org/250.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.