Audit trail with Hibernate Envers: How to trail on

2019-05-21 00:47发布

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?

0条回答
登录 后发表回答