1.2
Parent...
<set name="NetworkGroupBudgets" lazy="false" inverse="true" cascade="all-delete-orphan">
<key column="MKT_GROUP_BUDGET_ID"/>
<one-to-many class="NetworkGroupBudgetEntity" />
</set>
Child...
<many-to-one name="GroupBudget" column="MKT_GROUP_BUDGET_ID" not-null="true" lazy ="false" class="blah.GroupBudgetEntity,blah" />
When I delete and add records that have unique constraints in the db, the insert record fires before the delete.
Our translation does not translate an item for delete, and adds a transient item for insert.
Is there a way to force nHibernate to perform all deletes before inserts?
|