NHibernate Version 1.2.1
NHibernate fetches collections by associations, but how to teach it to delete detached objects from parent collections? Sometimes I had an ObjectDeletedException: deleted object would be re-saved by cascade
I don't want to remove detached object manually, because hierarchy of table may be complex: TableA -> TableB -> TableC and TableD -> TableC and I delete object from TableB. Detached objects from TableC by cascade delete will be at TableD collection. I want to have knowledge about table structure only in mapping files, not in source code.
Does NHibernate have such setting?
|