问题
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