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: Nested Collection not been initializated
PostPosted: Wed Mar 23, 2011 3:14 pm 
Newbie

Joined: Thu Feb 05, 2009 3:37 pm
Posts: 13
Hi all


I have de following scenario

ObjectA has a collections of objectB. ObjectB has a collection of ObjectC.

Every relation is in lazy fetch mode.

I use a criteria in order to get a list of ObjectA. In that criteria I change the fetchmode of the two nested collections to JOIN.

I then return the collection to my web tier. I'm having a lazyinitializationexceptoin when i try to acces the collection of ObjectC although I se the table in the qry and that i've changed the fetchmode in the criteria

Any help would really be apreciated.


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.