hibernate Criteria-based join: no left/right outer?

Juan Rolando Prieur-Reza

Ranch Hand

Posts: 237

posted 9 years ago

Would someone confirm or clarify to me whether Hibernate supports the use of Criteria and Projections to perform left outer joins (and right outer joins) ? It appears to only support outer joins unless you use HQL. Thanks

Originally posted by juan prieur: Would someone confirm or clarify to me whether Hibernate supports the use of Criteria and Projections to perform left outer joins (and right outer joins) ? It appears to only support outer joins unless you use HQL. Thanks

Multiple join Criteria Queries in Hibernate I wanted to use Hibernate's Criteria API to construct a query against an object with two foreign keys that pointed to two separate tables. I couldn't find any examples of how to join all three tables together using Criteria. I've pasted one below for posterity: