Hi,
We're using envers 3.6.10.Final as our auditing solution. I have a question about the way envers audits the other side of a bidirectional relationship regardless of whether any changes have been made to it.
For example :
I have a simple many-to-many bidirectional relationship between Person and DistributionList
When persisting a DistributionList with a collection of Person, envers audits the DistributionList entity, the join table but also the Person entity.
This means that when we inspect audit information on the Person entity, (forRevisionsOfEntity method), we find that there is a revision every time a person has been added/removed from a DistributionList. Consequently, when displaying audit information for the Person entity, numerous revisions are exactly the same.
Is there anyway to stop envers from doing this? targetAuditMode=RelationTargetAuditMode.NOT_AUDITED seems to have zero effect on what is written to the audit tables.
Thanks in advance.
|