There are two entities - A and B.
class A {
public List<B> bAr;
}
class B {
public int count;
}
for hql query like:
select root FROM A root INNER JOIN FETCH root.bAr b WHERE b.count > 0
let's say where are no B rows where count is > 0. By default i get null as result. What i need is to get an object of type A with bAr as an empty collection.
Is it possible to modify this query or set some hibernate configuration option to get needed result?