Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1M3
-
None
Description
I am using @Auditable and @AuditableChild annotations a lot to trace changes to objects. I need them to be more expressive though. For instance if the actual object change tracking backend is implemented to save update timestamp in the same table as the updated object, it would be nice that a change to "updatedTimestamp" property to not trigger another audit event of its own. I.e. it would be great to mark certain properties as "excluded" or "ignored" from audit. Moreover changes in "runtime" relationships (those implicitly created relationships that allow one way explicit relationships to function) should not trigger audit events , so those should be added to excludes behind the scenes.
So @Auditable and @AuditableChild will need the following extra method:
String[] ignoredProperties() default {};