Set the Inverse
property to true
. This will let nhibernate know that it should not handle the collection changes, instead you have to persist changes to any B
reference somewhere else.
You can still cascade delete orphans to remove references from A to B if the reference has been removed from Values
for example...
Example:
[Set(0, Cascade = "all-delete-orphan", Inverse=true, Lazy = CollectionLazy.False)]