We are using NHibernate and Envers. Everything works fine, but envers is not inserting audits for deleting orphans.
Inverse().Cascade.AllDeleteOrphan()
Where can I find a good envers documentation for nhibernate? Is it possible at all so that evers is doing delete entries in history tables for deleting an orphan?
...
entity.SomeCollection.Clear(); //Orphans will be deleted because cascade is AllDeleteOrphan.
tx.commit();
Best regards!
Yep, found the answer myself. Envers is doing inserts for orphan deletes:
But only if the relation end is not declared inverse.
If you want an entry non the less, then add:
nhibernate.envers.revision_on_collection_change
http://envers.bitbucket.org/