-->
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.  [ 3 posts ] 
Author Message
 Post subject: outer-join
PostPosted: Thu Oct 02, 2003 2:01 pm 
Expert
Expert

Joined: Tue Sep 16, 2003 4:06 pm
Posts: 318
Location: St. Petersburg, Russia
Do I understand things correctly? Setting outer-join=false does not prevent Hibernate from loading parent object but only instructs not to use outer join and use separate select instead?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 02, 2003 4:15 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Depends upon whether the associated object has prxoy enabled.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 02, 2003 6:11 pm 
Expert
Expert

Joined: Tue Sep 16, 2003 4:06 pm
Posts: 318
Location: St. Petersburg, Russia
Ok :)

1. when Proxy is not used and outer-join=true (or auto) - both objects are fetched in ONE select
2. when Proxy is not used and outer-join=false - both objects are fetched in TWO selects
3. When Proxy is used, and outer-join=false (or auto), only first object is fetched and Proxy created for the associated object.

Is that all correct?

If yes, is it possible to somehow put in the documentation that the way #2 produces two selects? No doubt, it is obvoius for you but it may be surprise for others :)


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