Annotation Type Auditable


  • @Target({METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface Auditable
    Annotates an auditable field or method. Tracks data changes for INSERT, UPDATE or DELETE in the audit table.
    Author:
    Jim Richards
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String field
      (Optional) The name of the field if different to the set/get method
      boolean recurse
      (Optional) Tells the audit tool to recurse into the GenericEntity and audit all the sub-entities.
    • Element Detail

      • field

        String field
        (Optional) The name of the field if different to the set/get method
        Returns:
        default value
        Default:
        ""
      • recurse

        boolean recurse
        (Optional) Tells the audit tool to recurse into the GenericEntity and audit all the sub-entities. Usually used with orphanRemoval = true or CascadeType ALL or REMOVE actions.
        Returns:
        false
        Default:
        false