Hi, I have two object : "Mother" and "Child". Mother have many Children, How can i get from the DB a Mother with only 2 Children (or less), the younger and the older. Thanks
edit:
The mother i want to get have a lot of children but i only want the younger and the older.
Something like that :
from Mother m left join m.Child c where (max(c.age) or min(c.age))