ItEr41S16ImplantacionAplicacionItEr40S21: Adding missing delete-orphan.

Avoids exception when removing an allocation row with derived allocations.
This commit is contained in:
Óscar González Fernández 2009-12-29 12:54:22 +01:00
parent d2333b6312
commit 2c6036250f

View file

@ -20,7 +20,7 @@
column="ASSIGNMENT_FUNCTION" not-null="false"
cascade="all" lazy="false" />
<set name="derivedAllocations" cascade="all" inverse="true">
<set name="derivedAllocations" cascade="all-delete-orphan" inverse="true">
<key column="RESOURCE_ALLOCATION_ID" />
<one-to-many class="DerivedAllocation"/>
</set>