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: Can hibernate lazy init any association?
PostPosted: Thu Apr 15, 2004 4:57 am 
Regular
Regular

Joined: Wed Dec 03, 2003 9:41 pm
Posts: 87
I knew hibernate can lazy a collection. But most time I found so many class have association(not one-to-many). If I load one instance, it perhaps load A,B,C,D,E and so on. Sometime I need all class (A-E) for business but sometime I only need A,B. That means at this time I don't care infomation about C, D, E though it has association between A, B, C, D, E.
Can hibernate lazy init C, D, E in when the association is many-to-one, one-to-one?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 15, 2004 5:06 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Read the documentation, chapter "performance".

_________________
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.  [ 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.