I have two classes . for example :
class A {
public Long id ;
}
class B {
public Long id ;
public A a ;
}
B and A has many to one relationship. I can get List of B like this :
"from B b left join b.a a where a.id > 10 and b.id > 10 "
.
But how can I get List of A under the same join conditions ? I can't navigate A to B , Is there any solutions ? Can I do this by using criteria ?
ps : can I do it like this :
"select a from A a , B b where b.a.id = a.id
" ?