-->
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: set the level of lazy initialisation?
PostPosted: Thu Feb 23, 2006 11:37 am 
Beginner
Beginner

Joined: Fri Jan 13, 2006 11:19 am
Posts: 24
Student ->course->book
How to set the level of lazy initialisation. Which mean that it will initialise level to 3. Once i query the student, the hibernate will auto query the course then book. If all the lazy = false. How to do that?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 28, 2006 12:54 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
If they're already lazy="false", then aren't they being loaded eagerly already?

Anyway, the property you're looking for is hibernate.max_fetch_depth, listed in table 3.3 of the ref docs.


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.