@Auditable and @AuditableChild annotations should support 'ignoredProperties' 
parameter and exclude changes to runtime relationships
------------------------------------------------------------------------------------------------------------------------------------

                 Key: CAY-1662
                 URL: https://issues.apache.org/jira/browse/CAY-1662
             Project: Cayenne
          Issue Type: Improvement
          Components: Lifecycle Extensions
    Affects Versions: 3.1M3
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik


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 {};

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to