-->
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: Lazy load on many-to-one
PostPosted: Thu Jan 15, 2004 3:04 pm 
Beginner
Beginner

Joined: Wed Sep 17, 2003 4:07 pm
Posts: 22
Is there anyway I can lazily load a many-to-one object?

In my mapping, I have 'User' class has a many-to-one to 'Organization' that has many-to-one to 'Account' and goes on. So, whenever I load the User object, there is multiple many-to-one queries being fired. At some cases, I just need the User object. How do I achieve this?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 3:08 pm 
Regular
Regular

Joined: Wed Nov 05, 2003 10:57 pm
Posts: 96
You need to use proxies on the one side objects


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.