CommitLog (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.commitlog, annotation type: CommitLog

# Annotation Interface CommitLog

@Deprecated(since="5.0") @Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface CommitLog
Deprecated.
use `CommitLog` instead.
An annotation that adds commit log behavior to Persistent objects.

Since:
  4.0

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `String[]`
  `confidential`
  Deprecated.
  Returns an array of properties that should be treated as confidential.
  `boolean`
  `ignoreAttributes`
  Deprecated.
  Returns whether all attributes should be excluded from commit log.
  `String[]`
  `ignoredProperties`
  Deprecated.
  Returns an array of entity properties that should be excluded from commit log.
  `boolean`
  `ignoreToManyRelationships`
  Deprecated.
  Returns whether all to-many relationships should be excluded from commit log.
  `boolean`
  `ignoreToOneRelationships`
  Deprecated.
  Returns whether all to-one relationships should be excluded from commit log.

- ## Element Details

  - ### ignoredProperties

    String[] ignoredProperties
    Deprecated.
    Returns an array of entity properties that should be excluded from commit log.
    Default:
      `{}`

  - ### ignoreAttributes

    boolean ignoreAttributes
    Deprecated.
    Returns whether all attributes should be excluded from commit log.
    Since:
      4.0
    Default:
      `false`

  - ### ignoreToOneRelationships

    boolean ignoreToOneRelationships
    Deprecated.
    Returns whether all to-one relationships should be excluded from commit log.
    Since:
      4.0
    Default:
      `false`

  - ### ignoreToManyRelationships

    boolean ignoreToManyRelationships
    Deprecated.
    Returns whether all to-many relationships should be excluded from commit log.
    Since:
      4.0
    Default:
      `false`

  - ### confidential

    String[] confidential
    Deprecated.
    Returns an array of properties that should be treated as confidential. I.e. their change should be recorded, but their values should be hidden from listeners. In practice both old and new values will be set to an instance of `Confidential`.
    Since:
      4.0
    Default:
      `{}`