File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "What are the joins in Hibernate ?" Watch "What are the joins in Hibernate ?" New topic

What are the joins in Hibernate ?

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

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:

(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.
I agree. Here's the link:
subject: What are the joins in Hibernate ?
Similar Threads
Recursive fetch join not recursively fetching all children
Regarding Hibernate Query
getting data from 2 tables using 2 DTOs
left outer join *= how make compitible in HQL
Sorry, but what does this select mean ?