Hi,
in my C# application I have a parent-child relation mapped the following way:
(Snippet shows mapping file from parent object)
Code:
<property column="name" type="String" name="Name" not-null="false" length="50"/>
<property column="birthdate" type="Date" name="Birthdate" />
<bag name="Childs" table="childs" cascade="all-delete-orphan" lazy="false">
<key column="parent_id" />
<one-to-many class="BuisnessClass.Child, BuisnessClass"/>
</bag>
I use the cascade option for delete update and so on. For all scenarios the cascade behavior is very usefull an welcome.
I work with detached objects and as you can see without lazy loading.
But now I try to update just the birthdate from the parent-object without updating all the child-objects.
Is there a possibility to disable the cascade-behavior for just one database operation?
Thanks in advance