0

I have Class A on which on which criteria is created. Class B is mapped in class A. But I want to join class C with class B using criteria.

Class B and C are directly related.

I want the query something like:

select * from A
left outer join B on B.id = A.id
left outer join C on B.id = C.id

and

Criteria criteria = factory.getCurrentSession().createCriteria(A.class, "A");
Mikko Maunu
  • 41,366
  • 10
  • 132
  • 135
Uday
  • 1
  • 3
  • You should show the relevant parts of your A, B and C classes. Specifically how they relate to eachother. Also, your question is generally incomplete, you should explain an expected output based on an example input, and preferably what you have tried to solve the problem yourself. – Tobb Aug 07 '19 at 07:47
  • Answer is here : https://stackoverflow.com/questions/8726396/hibernate-criteria-join-with-3-tables – becher henchiri Aug 07 '19 at 08:06

0 Answers0