-->
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: Eager Fetch For Entire Session
PostPosted: Wed Oct 26, 2005 2:36 pm 
Newbie

Joined: Fri May 13, 2005 11:14 am
Posts: 18
I have an object which has a couple collections of objects which contain collections (and so on). In all my mapping files, lazy="true", because I don't want to load all these collections all the time. But, in one situation, I need access to all the data. Is there any way I can override the lazy setting for the session instead of just the criteria?

Thanks,
Jamie


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 27, 2005 6:27 am 
Regular
Regular

Joined: Tue Mar 15, 2005 12:38 pm
Posts: 73
Location: Bucharest
Nope... (as far as I know)

You have to instuct nHibernate to do this using the ICriteria.SetFetchMode or IQuery ( ".. from a inner join fetch a.collection" ).

dado


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.