Two Laptop Bag*
The moose likes Object Relational Mapping and the fly likes What are the joins in Hibernate ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "What are the joins in Hibernate ?" Watch "What are the joins in Hibernate ?" New topic
Author

What are the joins in Hibernate ?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi.
The following lines are from Hibernate doc :

Would you mind telling me what do : inner join, left outer join, right outer join, full join mean ?
Thanks for help.
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Joins are part of SQL/relational database theory and so are lifted directly into HQL, with some syntactic sugar. Here's a good article on them:

en.wikipedia.org/wiki/Join_(SQL)

(Unforturnately, the forum software here is suspicious of those parens,
so copy and paste that into your browser's address bar...)


There is no emoticon for what I am feeling!
Vinnie Jenks
Ranch Hand

Joined: Apr 26, 2004
Posts: 207
These are the basic join types in standard SQL. I would strongly suggest doing some basic SQL learning before using Hibernate as it will not entirely eliminate the need to know SQL.

Some people think they can use Hibernate as a means to entirely shield them from the relational data it is abstracting, this couldn't be any further from the truth.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What are the joins in Hibernate ?
 
Similar Threads
Regarding Hibernate Query
getting data from 2 tables using 2 DTOs
Recursive fetch join not recursively fetching all children
Sorry, but what does this select mean ?
left outer join *= how make compitible in HQL