Reputation:
i'm new to Hibernate framework, basically i've experience in using joins in mysql. But does'nt know whether all the joins supported by other databases will support in hql.
can anyone please tell me which all joins are there in hibernate from the following below joins.
Upvotes: 1
Views: 3511
Reputation: 123861
The best starting point would be the documentation. In the section 16.3. Associations and joins, we can see, that for querying, based on HQL we have:
The supported join types are borrowed from ANSI SQL:
- inner join
- left outer join
- right outer join
- full join (not usually useful)
And that's pretty it. Because we are working on the abstractinal model, all the 'specific' JOIN types defined by DB providers are not supported
Also you can check the Criterion here, to see predefined joins 'const': FULL_JOIN
, INNER_JOIN
, LEFT_JOIN
, used for Criteria API *(e.g. Criteria.LEFT_JOIN)*
Upvotes: 1