Interface EnversSettings
-
public interface EnversSettingsConfiguration property names.
-
-
Field Summary
Fields Modifier and Type Field Description static StringALLOW_IDENTIFIER_REUSEGuarantees proper validity audit strategy behavior when application reuses identifiers of deleted entities.static StringAUDIT_STRATEGYAudit strategy.static StringAUDIT_STRATEGY_VALIDITY_END_REV_FIELD_NAMEColumn name that will hold the end revision number in audit entities.static StringAUDIT_STRATEGY_VALIDITY_REVEND_TIMESTAMP_FIELD_NAMEColumn name of the timestamp of the end revision until which the data was valid.static StringAUDIT_STRATEGY_VALIDITY_REVEND_TIMESTAMP_LEGACY_PLACEMENTWhether to use legacy validity audit strategy revision end timestamp behavior where the field is not included as part of the joined entity inheritance subclass audit tables.static StringAUDIT_STRATEGY_VALIDITY_REVEND_TIMESTAMP_NUMERICDetermines whether the timestamp of the end revision is stored as a numeric data type.static StringAUDIT_STRATEGY_VALIDITY_STORE_REVEND_TIMESTAMPStore the timestamp of the end revision, until which the data was valid, in addition to the end revision itself.static StringAUDIT_TABLE_PREFIXAudit table prefix.static StringAUDIT_TABLE_SUFFIXAudit table suffix.static StringCASCADE_DELETE_REVISIONDeletion of a revision entity will cause a foreign key constraint database error when at least one audit record exists for that revision.static StringDEFAULT_CATALOGDefault name of the catalog containing audit tables.static StringDEFAULT_SCHEMADefault name of the schema containing audit tables.static StringDO_NOT_AUDIT_OPTIMISTIC_LOCKING_FIELDTreats optimistic locking properties as unversioned.static StringEMBEDDABLE_SET_ORDINAL_FIELD_NAMEName of column used for storing ordinal of the change in sets of embeddable elements.static StringFIND_BY_REVISION_EXACT_MATCHForcesAuditReader#findimplementations that accept a revision-number argument to perform an exact match against the supplied revision number rather than potentially returning hits that are less-than or equal-to the supplied revision number.static StringGLOBAL_RELATION_NOT_FOUND_LEGACY_FLAGGlobally defines whether legacy relation not-found behavior should be used or not.static StringGLOBAL_WITH_MODIFIED_FLAGGlobally activates modified properties flag feature.static StringMODIFIED_COLUMN_NAMING_STRATEGYSpecifies theModifiedColumnNamingStrategyto use Defaults toLegacyModifiedColumnNamingStrategy.static StringMODIFIED_FLAG_SUFFIXSuffix of modified flag columns.static StringORIGINAL_ID_PROP_NAMEOriginal id property name name.static StringREVISION_FIELD_NAMERevision field name.static StringREVISION_LISTENERFully qualified class name of user defined revision listener.static StringREVISION_ON_COLLECTION_CHANGETriggers revision generation when not-owned relation field changes.static StringREVISION_SEQUENCE_NOCACHEWhether to apply a nocache configuration for the revision sequence.static StringREVISION_TYPE_FIELD_NAMERevision type field name.static StringSTORE_DATA_AT_DELETEIndicates whether entity data should be stored during removal.static StringTRACK_ENTITIES_CHANGED_IN_REVISIONTrack entity names that have been changed during each revision.static StringUSE_REVISION_ENTITY_WITH_NATIVE_IDUse revision entity with native identifier generator.
-
-
-
Field Detail
-
REVISION_ON_COLLECTION_CHANGE
static final String REVISION_ON_COLLECTION_CHANGE
Triggers revision generation when not-owned relation field changes. Defaults totrue.- See Also:
- Constant Field Values
-
DO_NOT_AUDIT_OPTIMISTIC_LOCKING_FIELD
static final String DO_NOT_AUDIT_OPTIMISTIC_LOCKING_FIELD
Treats optimistic locking properties as unversioned. Defaults totrue.- See Also:
- Constant Field Values
-
STORE_DATA_AT_DELETE
static final String STORE_DATA_AT_DELETE
Indicates whether entity data should be stored during removal. Defaults tofalse.- See Also:
- Constant Field Values
-
DEFAULT_SCHEMA
static final String DEFAULT_SCHEMA
Default name of the schema containing audit tables.- See Also:
- Constant Field Values
-
DEFAULT_CATALOG
static final String DEFAULT_CATALOG
Default name of the catalog containing audit tables.- See Also:
- Constant Field Values
-
TRACK_ENTITIES_CHANGED_IN_REVISION
static final String TRACK_ENTITIES_CHANGED_IN_REVISION
Track entity names that have been changed during each revision. Defaults tofalse.- See Also:
- Constant Field Values
-
USE_REVISION_ENTITY_WITH_NATIVE_ID
static final String USE_REVISION_ENTITY_WITH_NATIVE_ID
Use revision entity with native identifier generator. Defaults totruefor backward compatibility.- See Also:
- Constant Field Values
-
GLOBAL_WITH_MODIFIED_FLAG
static final String GLOBAL_WITH_MODIFIED_FLAG
Globally activates modified properties flag feature. Defaults tofalse.- See Also:
- Constant Field Values
-
MODIFIED_FLAG_SUFFIX
static final String MODIFIED_FLAG_SUFFIX
Suffix of modified flag columns. Defaults to _MOD.- See Also:
- Constant Field Values
-
REVISION_LISTENER
static final String REVISION_LISTENER
Fully qualified class name of user defined revision listener.- See Also:
- Constant Field Values
-
AUDIT_TABLE_PREFIX
static final String AUDIT_TABLE_PREFIX
Audit table prefix. Empty by default.- See Also:
- Constant Field Values
-
AUDIT_TABLE_SUFFIX
static final String AUDIT_TABLE_SUFFIX
Audit table suffix. Defaults to _AUD.- See Also:
- Constant Field Values
-
AUDIT_STRATEGY
static final String AUDIT_STRATEGY
Audit strategy. Defaults toDefaultAuditStrategy.- See Also:
- Constant Field Values
-
REVISION_FIELD_NAME
static final String REVISION_FIELD_NAME
Revision field name. Defaults to REV.- See Also:
- Constant Field Values
-
REVISION_TYPE_FIELD_NAME
static final String REVISION_TYPE_FIELD_NAME
Revision type field name. Defaults to REVTYPE.- See Also:
- Constant Field Values
-
ORIGINAL_ID_PROP_NAME
static final String ORIGINAL_ID_PROP_NAME
Original id property name name. Defaults to originalId.- See Also:
- Constant Field Values
-
AUDIT_STRATEGY_VALIDITY_END_REV_FIELD_NAME
static final String AUDIT_STRATEGY_VALIDITY_END_REV_FIELD_NAME
Column name that will hold the end revision number in audit entities. Defaults to REVEND.- See Also:
- Constant Field Values
-
AUDIT_STRATEGY_VALIDITY_STORE_REVEND_TIMESTAMP
static final String AUDIT_STRATEGY_VALIDITY_STORE_REVEND_TIMESTAMP
Store the timestamp of the end revision, until which the data was valid, in addition to the end revision itself. Defaults tofalse.- See Also:
- Constant Field Values
-
AUDIT_STRATEGY_VALIDITY_REVEND_TIMESTAMP_FIELD_NAME
static final String AUDIT_STRATEGY_VALIDITY_REVEND_TIMESTAMP_FIELD_NAME
Column name of the timestamp of the end revision until which the data was valid. Defaults to REVEND_TSTMP.- See Also:
- Constant Field Values
-
AUDIT_STRATEGY_VALIDITY_REVEND_TIMESTAMP_NUMERIC
static final String AUDIT_STRATEGY_VALIDITY_REVEND_TIMESTAMP_NUMERIC
Determines whether the timestamp of the end revision is stored as a numeric data type. Defaults to false.- Since:
- 6.0
- See Also:
- Constant Field Values
-
AUDIT_STRATEGY_VALIDITY_REVEND_TIMESTAMP_LEGACY_PLACEMENT
static final String AUDIT_STRATEGY_VALIDITY_REVEND_TIMESTAMP_LEGACY_PLACEMENT
Whether to use legacy validity audit strategy revision end timestamp behavior where the field is not included as part of the joined entity inheritance subclass audit tables. Defaults totrue.- Since:
- 6.0
- See Also:
- Constant Field Values
-
EMBEDDABLE_SET_ORDINAL_FIELD_NAME
static final String EMBEDDABLE_SET_ORDINAL_FIELD_NAME
Name of column used for storing ordinal of the change in sets of embeddable elements. Defaults to SETORDINAL.- See Also:
- Constant Field Values
-
ALLOW_IDENTIFIER_REUSE
static final String ALLOW_IDENTIFIER_REUSE
Guarantees proper validity audit strategy behavior when application reuses identifiers of deleted entities. Exactly one row withnullend date exists for each identifier.- See Also:
- Constant Field Values
-
FIND_BY_REVISION_EXACT_MATCH
static final String FIND_BY_REVISION_EXACT_MATCH
ForcesAuditReader#findimplementations that accept a revision-number argument to perform an exact match against the supplied revision number rather than potentially returning hits that are less-than or equal-to the supplied revision number. This option is meant to maintain backward compatibility while attempting to correct a bug in behavior without impacting existing users who may use the current behavior. Defaults to false.- Since:
- 5.4.4
- See Also:
- Constant Field Values
-
MODIFIED_COLUMN_NAMING_STRATEGY
static final String MODIFIED_COLUMN_NAMING_STRATEGY
Specifies theModifiedColumnNamingStrategyto use Defaults toLegacyModifiedColumnNamingStrategy.- Since:
- 5.4.7
- See Also:
- Constant Field Values
-
CASCADE_DELETE_REVISION
static final String CASCADE_DELETE_REVISION
Deletion of a revision entity will cause a foreign key constraint database error when at least one audit record exists for that revision. By enabling this feature, deletion of the revision entity will also force all audit records associated to that revision to be deleted via cascade. Defaults to false.- Since:
- 4.3.0
- See Also:
- Constant Field Values
-
GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG
static final String GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG
Globally defines whether legacy relation not-found behavior should be used or not. Defaults totrue. By specifyingtrue, anyEntityNotFoundExceptionwill be thrown unless the containing class or property explicitly specifies that use case to be ignored. Conversely, when specifying the valuefalse, the inverse applies and requires explicitly specifying the use case as error so that the exception is thrown.- See Also:
- Constant Field Values
-
REVISION_SEQUENCE_NOCACHE
static final String REVISION_SEQUENCE_NOCACHE
Whether to apply a nocache configuration for the revision sequence. This is mostly interesting for testing.- See Also:
- Constant Field Values
-
-