Audit trail with Hibernate Envers: How to trail only selected changes on entity?

℡╲_俬逩灬. 提交于 2019-12-08 00:13:54

问题


I have already implemented audit trail using hibernate envers for my entities and it works fine. Any changes (insert,update,delete) are stored in _AUD tables.

Now I want to extend my audit and trail changes when one entity property has changed only. I want to store that change to additional table. In addition to the existing TABLE_AUD table which is tracking all changes in the entity, I need a second table TABLE_AUD2 that will track changes based on the one entity property only. What is important: the thing relates to the same entity.

Is it possible in envers? What can you suggest to implement such a requirement?

来源:https://stackoverflow.com/questions/21883035/audit-trail-with-hibernate-envers-how-to-trail-only-selected-changes-on-entity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!