Thank you for the answer.
Sure, your answer is what I finally did, and I agree with the fact that the parent has still 3 childrens...
But in the first verison of my application I had to display all parents with all the childrens so I had a simple query :
Code:
from Parents;
and the lazy loading gets me all the children...
Now, in the second version, I need to display the children only if there name is :name, I though HBN had a solution to change my query without having to change my code...
Maybe with the "where" or "subselect" attribute in the parent's mapping ?
Quote:
<set name="children" where="name = :name">
...
</set>
But I can't figure out to set a parameter...