You can define a mapping, so that the child objects are deleted when they are removed from the parent's collection.
The mapping is as follows (within the parent class mapping):
Code:
...
<set name="children"
cascade="all,delete-orphan"
inverse="true">
<key column="CU_PARENT"/>
<one-to-many class="Child"/>
</set>
...
This assumes, that the children are associated by a foreign key to the parent in the child's table.
I believe, the key points are the cascade and the inverse part.
Does that help?
All the best,
René