Hi . We appear to be having the below issue , any assitance in solving would be much appreciated.
Problem Summary.
When a child object is deleted. An Update to the parent happens although the parent has not been updated.
architecture keys : Select-before-update=true, detached object reattached to session.
Eg: Customer and Orders
When an order item is deleted and update to Customers happens .
Is there a way to avoid this ?
Relationships in hbm files.
<bag name="OrdersList" cascade="all-delete-orphan" lazy="false" inverse="true" fetch="subselect"> <key column="CustomerID" /> <one-to-many class="Orders" /> </bag>
<many-to-one name="Customers" class="Customers" column="CustomerID" cascade="none" />
|