-->
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: no inner join, left outer join, right outer join in hibernat
PostPosted: Fri Oct 24, 2008 5:17 am 
Newbie

Joined: Mon Jun 20, 2005 11:14 pm
Posts: 13
hibernate 3.x

I am a beginner in hibernate, I used to use T-SQL and there is left outer join, inner join, right outer join. but is it not support in hibernate?

I find left join fetch, right join fetch, inner join fetch in hibernate, is it similar to left outer join, inner join, right outer join in T-Sql?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 24, 2008 5:20 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
Hibernate has all kinds of joins that you mention. See http://www.hibernate.org/hib_docs/v3/re ... joins.html


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 24, 2008 5:47 am 
Newbie

Joined: Mon Jun 20, 2005 11:14 pm
Posts: 13
then what is the different between inner join and inner join fetch, left outer join and left outer join fetch, right outer join and right outer join fetch?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 24, 2008 6:26 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
From the docs:

Quote:
In addition, a "fetch" join allows associations or collections of values to be initialized along with their parent objects, using a single select.


Between the lines... without the fetch the associations/collection would be initialized with extra select statements automatically generated by Hibernate when needed. See http://www.hibernate.org/hib_docs/v3/re ... e-fetching


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.