-->
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.  [ 1 post ] 
Author Message
 Post subject: lazy fetching with spring hibernate java 1.4
PostPosted: Sat Aug 30, 2008 1:16 am 
Beginner
Beginner

Joined: Wed May 14, 2008 2:06 pm
Posts: 21
I have one-to-many property for my entity and i want to make this lazy, so no eager fetching.My application is built on spring2.5 , hibernate 3 and java 1.4.
When I call getA which is a set with one-to-many and lazy , I get org.hibernate.LazyInitializationException
failed to lazily initialize a collection of role: xjh.ki....., no session or session was closed . Please hlep me resolve this .I read that hibernate does not support lazy initilization outside the session. So in my case how can go with session ?


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

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.