Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1662

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1M3
    • 3.1B1
    • Lifecycle Extensions
    • 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 {};

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: