Nhibernate envers: auditing an organization already in production

We have an application that is already in production and uses Envers for auditing.

We are now going to release an update in which we validate the new entity type. However, this object already exists in the production environment, but has not yet been verified.

We tried in a test environment that contains existence records and it is reset on save because Envers cannot find the previous revision for the saved object.

What is the approach to solving this problem?

It would be great if you could specify the date from which the object should be scanned.

+3


source to share


1 answer


To do this, you need to manually write a script. It shouldn't be that hard, just create one row in your revision table and write "insert audit records" for that revision for all of your audited objects.



+4


source







All Articles