Annotation Interface Audited.Table

Enclosing class:
Audited

@Documented @Target({TYPE,PACKAGE,ANNOTATION_TYPE}) @Retention(RUNTIME) public static @interface Audited.Table
Specifies the audit log's table mapping for an audited entity. Placed on the entity class alongside @Audited to customize the audit table name, schema, catalog, and column names.

This annotation may also be placed on a subclass entity in a JOINED or TABLE_PER_CLASS hierarchy to override the audit table name, schema, or catalog for that subclass. The subclass inherits auditing from the root entity; the annotation on the subclass only customizes table mapping.

Since:
7.4
  • Field Details

  • Element Details

    • name

      String name
      The name of the audit log table. Defaults to the name of the main table with the suffix _AUD.
      Default:
      ""
    • schema

      String schema
      The schema of the audit log table. Defaults to the schema of the main table.
      Default:
      ""
    • catalog

      String catalog
      The catalog of the audit log table. Defaults to the catalog of the main table.
      Default:
      ""
    • changesetIdColumn

      String changesetIdColumn
      The name of the column holding the identifier of the changeset in which an audit row was introduced.
      See Also:
      Default:
      "REV"
    • modificationTypeColumn

      String modificationTypeColumn
      The name of the column holding the modification type, encoded as 0 for creation, 1 for modification, and 2 for deletion.
      See Also:
      Default:
      "REVTYPE"
    • invalidatingChangesetIdColumn

      String invalidatingChangesetIdColumn
      The name of the column holding the identifier of the changeset which invalidates an audit row when the audit strategy is set to AuditStrategy.VALIDITY. When a new audit row is written, the previous row's invalidating changeset id column is updated with the current changeset id, marking it as superseded. A null value indicates the row is current (not yet superseded).
      Default:
      "REVEND"