fill audit tables on startup
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?
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.
链接地址: http://www.djcxy.com/p/71560.html上一篇: 为什么Hibernate Envers没有启动更新?
下一篇: 启动时填写审计表