Reputation: 3224
I have written an application in Spring + Hibernate that uses Hibernate Envers to track history of business data.
On startup I have to load a lot of data from SQL scripts (not with Hibernate API!). Afterall I cannot see any data tracked in audit tables, probably because I did not use Hibernate API.
Do you know how can I fulfill audit tables with data created through SQL inserts? Is there any easy way to do it automatically? Can I do it with Hibernate Envers or any other technology that supports Envers?
Upvotes: 0
Views: 382
Reputation: 21103
Envers does not presently have an automated way to audit records which were added or changed outside the scope of Hibernate. However, you can have your import scripts insert the relevant rows into your Envers schema if you wish.
Upvotes: 3