Is a List mapping handled differently than say a bag?

I have a one to many mapped with a list and a position index column.
If I delete my parent class it will not work, it does not delete but
tries to update the children with null values for relations.

If I change this to a bag it will work fine and issue deletes. My list
is mapped like follows:

<list name="Children" lazy="true" inverse="false" cascade="all-delete-orphan">
      <key column="ParentId" />
      <index column="Position" />
      <one-to-many class="Child" />
</list>



Cheers

-- 
Stefan Sedich
Software Developer
http://weblogs.asp.net/stefansedich

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to