rags_1979 wrote:
Replace cascade="all,delete-orphan" to cascade="none" and you should see what you are expecting!
But then you will need to explicitly save your child items. Saving the parent only will not save the children.
Thanks a lot !
Well modifying the cascade attribute as you metioned.
<set name="dependentContactsSet" table="FEED_DEPENDENT_CONTACT" lazy="true"
cascade="none">
<key column="FEED_ID" update="false"></key>
<many-to-many class="model.DependentContact" />
</set>
is not solving the problem.I find the rows in intermideate table(FEED_DEPENDENT_CONTACT) are
deleted. Is there any thing that is missed out.
Thanks