Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

This is somewhat strange question, but is there some way to make NHibernate delete all children on deleting parent, if the parent doesn't have reference to his children (by reference I mean concrete collection of children that is mapped by list / set / map whatever).

I guess this would work by defining just cascade="delete" somewhere, mapping all but the concrete collection.

I could also put cascade delete in database, but I would like to avoid that.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.