hibernate - Adding Envers to an existing database -
I have a hibernate-based app in production with large databases. I want to add auditing to this app in two entities (two tables) Is required, and I have decided to go with the anchors.
Each INSERT adds a new record to the auditor's audit, to update or delete the table.
If I supported the launch of the anchors from the beginning of the application, then the population of the audit tables will be populated at the time of INSERT.
The Envers documentation is very slim, and does not mention anything about adding an existing application to Envers.
If I only make Envers support and related audit tables, that will start empty, so when I update an existing unit, a record to record new values in the Audit Tables But I'll lose the previous values.
How do I add Envers support in an application with an existing database?
There is currently no built-in solution in it.
A "Script" script (or manually created), with a combined audit record to force a "0" review N, for every current unit to make that revision.
Actually, this is a commonly requested feature, so if you want to contribute, it will be most welcome!
Comments
Post a Comment