This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.hibernate.LazyInitializationException

 
Naufal kurudamparambil
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am making one web application using struts 1.3 and hibernate I have changed not-null="false" in One to many relation in one class's hbm file, after that i got exception org.hibernate.LazyInitializationException

Regards
Naufal
 
Claudiu Chelemen
Ranch Hand
Posts: 75
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By default, hibernate uses lazy initialization.
Try adding lazy="false" to class declaration and check if it works.
If not, please post your mappings.

Cheers,
Claudiu
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic