I have a class with a many-to-one like this:
<bag name="Failures" inverse="true" cascade="all-delete-orphan">
<key on-delete="cascade" column="parent_id" />
<one-to-many class="FailureData" />
</bag>
and the child class mapped like this:
<many-to-one not-null="true" name="Parent" column="parent_id" />
Everything seems to work fine, except a delete on the parent entity
leaves the child records behind in the database. This is using sqlite
for testing, in case it makes a difference.
Am i missing something about the cascading configuration? Any pointers
would be welcome
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---