Btw, here is another strong argument which indicates that "bug" is the correct term: If you use the query
from Parent p where p.child is not null
you get the following SQL statement:
select
parent0_.id as id1_1_
from
Parent parent0_
where
parent0_.id is not null
This returns all persons instead of just those with children. |