Package io.quarkus.hibernate.envers
Class HibernateEnversBuildTimeConfigPersistenceUnit
java.lang.Object
io.quarkus.hibernate.envers.HibernateEnversBuildTimeConfigPersistenceUnit
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhether Hibernate Envers should be active for this persistence unit at runtime.booleanEnables the allow_identifier_reuse feature.Defines the fully qualified class name of the audit strategy to be used.Defines the column name that holds the end revision number in audit entities.Defines the column name of the revision end timestamp in the audit tables.booleanEnables the audit_strategy_validity_store_revend_timestamp feature.Defines a prefix for historical data table.Defines a suffix for historical data table.Defines the default catalog of where audit tables are to be created.Defines the default schema of where audit tables are to be created.booleanEnable the do_not_audit_optimistic_locking_field feature.Defines the name of the column used for storing collection ordinal values for embeddable elements.booleanEnables the global_with_modified_flag feature.Defines the naming strategy to be used for modified columns.Defines the suffix to be used for modified flag columns.Defines the property name for the audit entity's composite primary key.Revision field name.Defines the fully qualified class name of a user defined revision listener.booleanEnable the revision_on_collection_change feature.Revision type field name.booleanEnable store_data_at_delete feature.booleanEnables the track_entities_changed_in_revision feature.booleanEnables the use_revision_entity_with_native_id feature. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
active
@ConfigItem(defaultValueDocumentation="\'true\' if Hibernate ORM is enabled; \'false\' otherwise") public Optional<Boolean> activeWhether Hibernate Envers should be active for this persistence unit at runtime. If Hibernate Envers is not active, the audit entities will *still* be added to the Hibernate ORM metamodel and to the database schema that Hibernate ORM generates: you would need to disable Hibernate Envers at build time (i.e. set `quarkus.hibernate-envers.enabled` to `false`) in order to avoid that. However, when Hibernate Envers is not active, it will not process entity change events nor create new versions of entities. and accessing the AuditReader through AuditReaderFactory will not be possible. Note that if Hibernate Envers is disabled (i.e. `quarkus.hibernate-envers.enabled` is set to `false`), it won't be active for any persistence unit, and setting this property to `true` will fail. -
storeDataAtDelete
@ConfigItem(defaultValue="false") public boolean storeDataAtDeleteEnable store_data_at_delete feature. Maps toEnversSettings.STORE_DATA_AT_DELETE. -
auditTableSuffix
Defines a suffix for historical data table. Defaults to _AUD. Maps toEnversSettings.AUDIT_TABLE_SUFFIX. -
auditTablePrefix
Defines a prefix for historical data table. Default is the empty string. Maps toEnversSettings.AUDIT_TABLE_PREFIX. -
revisionFieldName
Revision field name. Defaults to REV. Maps toEnversSettings.REVISION_FIELD_NAME. -
revisionTypeFieldName
Revision type field name. Defaults to REVTYPE. Maps toEnversSettings.REVISION_TYPE_FIELD_NAME. -
revisionOnCollectionChange
@ConfigItem(defaultValue="true") public boolean revisionOnCollectionChangeEnable the revision_on_collection_change feature. Maps toEnversSettings.REVISION_ON_COLLECTION_CHANGE. -
doNotAuditOptimisticLockingField
@ConfigItem(defaultValue="true") public boolean doNotAuditOptimisticLockingFieldEnable the do_not_audit_optimistic_locking_field feature. Maps toEnversSettings.DO_NOT_AUDIT_OPTIMISTIC_LOCKING_FIELD. -
defaultSchema
Defines the default schema of where audit tables are to be created. Maps toEnversSettings.DEFAULT_SCHEMA. -
defaultCatalog
Defines the default catalog of where audit tables are to be created. Maps toEnversSettings.DEFAULT_CATALOG. -
trackEntitiesChangedInRevision
@ConfigItem(defaultValue="false") public boolean trackEntitiesChangedInRevisionEnables the track_entities_changed_in_revision feature. Maps toEnversSettings.TRACK_ENTITIES_CHANGED_IN_REVISION. -
useRevisionEntityWithNativeId
@ConfigItem(defaultValue="true") public boolean useRevisionEntityWithNativeIdEnables the use_revision_entity_with_native_id feature. Maps toEnversSettings.USE_REVISION_ENTITY_WITH_NATIVE_ID. -
globalWithModifiedFlag
@ConfigItem(defaultValue="false") public boolean globalWithModifiedFlagEnables the global_with_modified_flag feature. Maps toEnversSettings.GLOBAL_WITH_MODIFIED_FLAG. -
modifiedFlagSuffix
Defines the suffix to be used for modified flag columns. Defaults to _MOD. Maps toEnversSettings.MODIFIED_FLAG_SUFFIX -
revisionListener
Defines the fully qualified class name of a user defined revision listener. Maps toEnversSettings.REVISION_LISTENER. -
auditStrategy
@ConfigItem(defaultValue="org.hibernate.envers.strategy.DefaultAuditStrategy") public Optional<String> auditStrategyDefines the fully qualified class name of the audit strategy to be used. Maps toEnversSettings.AUDIT_STRATEGY. -
originalIdPropName
Defines the property name for the audit entity's composite primary key. Defaults to originalId. Maps toEnversSettings.ORIGINAL_ID_PROP_NAME. -
auditStrategyValidityEndRevFieldName
Defines the column name that holds the end revision number in audit entities. Defaults to REVEND. Maps toEnversSettings.AUDIT_STRATEGY_VALIDITY_END_REV_FIELD_NAME. -
auditStrategyValidityStoreRevendTimestamp
@ConfigItem(defaultValue="false") public boolean auditStrategyValidityStoreRevendTimestampEnables the audit_strategy_validity_store_revend_timestamp feature. Maps toEnversSettings.AUDIT_STRATEGY_VALIDITY_STORE_REVEND_TIMESTAMP. -
auditStrategyValidityRevendTimestampFieldName
@ConfigItem(defaultValue="REVEND_TSTMP") public Optional<String> auditStrategyValidityRevendTimestampFieldNameDefines the column name of the revision end timestamp in the audit tables. Defaults to REVEND_TSTMP. Maps toEnversSettings.AUDIT_STRATEGY_VALIDITY_REVEND_TIMESTAMP_FIELD_NAME. -
embeddableSetOrdinalFieldName
Defines the name of the column used for storing collection ordinal values for embeddable elements. Defaults to SETORDINAL. Maps toEnversSettings.EMBEDDABLE_SET_ORDINAL_FIELD_NAME. -
allowIdentifierReuse
@ConfigItem(defaultValue="false") public boolean allowIdentifierReuseEnables the allow_identifier_reuse feature. Maps toEnversSettings.ALLOW_IDENTIFIER_REUSE. -
modifiedColumnNamingStrategy
@ConfigItem(defaultValue="org.hibernate.envers.boot.internal.LegacyModifiedColumnNamingStrategy") public Optional<String> modifiedColumnNamingStrategyDefines the naming strategy to be used for modified columns. Defaults to org.hibernate.envers.boot.internal.LegacyModifiedColumnNamingStrategy. Maps toEnversSettings.MODIFIED_COLUMN_NAMING_STRATEGY.
-
-
Constructor Details
-
HibernateEnversBuildTimeConfigPersistenceUnit
public HibernateEnversBuildTimeConfigPersistenceUnit()
-