steve wrote:
yes. search docs/forums/wiki for "delete-orphan" cascade option
Here're the mapping details:
------------------------------------
<list name="phoneNos" inverse="false" cascade="all-delete-orphan">
<key column="entity_id"/>
<index column="entity_id_index"/>
<one-to-many class="x.y.z.PhoneNumber"/>
</list>
-------------------
<many-to-one name="entity" column="entity_id" class="x.y.z.Entity"/>
-------------------------------------
I delete a given item from the entity's collection and then do a saveOrUpdate(entity);
"delete-orphan" does the same...The problem persists
Thanks again..