Hello,
I'm facing what looks like a a common problem, but can't find the solution (or is it right before my eyes?)
I have many "many-to-many" unidirectional relationship in my application defined as this:
Code:
<set name="sandboxServices" table="USER_SERVICE">
<key column="USER_ID"/>
<many-to-many class="com.amadeus.wsadmin.objects.Service" column="SERVICE_ID"/>
</set>
When I delete a '"child" object, none of the collections containing this child is updated, leaving me with corrupted association tables...
I was expecting Hibernate to be able to take care of this, as "he" is supposed to have knowledge of all collections refering to a particular type of object.
Instead I have, to iterate through all my parent objects, and remove manually the removed object from the sets.
Am i missing something ? Is there a way to force Hibernate to look for the associations and clean them ?
Many thanks for your help.
- ju