-->
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.  [ 4 posts ] 
Author Message
 Post subject: how to bypass lazy-loading configuration?
PostPosted: Sun Jul 25, 2004 2:20 pm 
Newbie

Joined: Mon May 10, 2004 7:58 am
Posts: 15
Hi,

if i have a lazy collection of let's say... some users,
is "group.getUsers()" the only way to force loading the users elements
or is there any magic way that could help me directly load the "group" eagerly,
and so bypass the lazy-loading configuration?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 25, 2004 3:19 pm 
Beginner
Beginner

Joined: Wed Jul 21, 2004 12:28 pm
Posts: 27
Location: New York
I am not sure if I can follow you here, but if you do not need lazy loading then turn it off, by setting lazy="false"; this way you whenever you get the group object users will be populated already.

_________________
Thanks,
Alex


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 25, 2004 6:17 pm 
Regular
Regular

Joined: Tue Sep 30, 2003 11:27 am
Posts: 60
Location: Columbus, OH, USA
I'm guessing that he wants to know if there's a way at run-time to turn off lazy loading. I'm afraid I don't know the answer...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 25, 2004 6:18 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Runtime fetching strategies in Hibernate include "fetch" in HQL or a FetchMode with Criteria.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.