Assuming two tables, A[a_id, b_id] and B[b_id,c] .
I need to execute an HQL query of the form "From A a ORDER BY abc" , and b in class A
The query, however, returns only instances of A that have the non-null b property. This is because Hibernate generates SQL forms of "SELECT FROM A,B WHERE A.b_id = B.b_id ORDER BY Bc"
How to return all instances of A with those whose null in b appears first / last?
source share