Class Configuration
java.lang.Object
org.hibernate.envers.configuration.Configuration
Envers configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration
(Properties properties, EnversService enversService, InFlightMetadataCollector metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomAuditTableName
(String entityName, String tableName) getAuditEntityName
(String entityName) todo: move this Get the audit enttiy name.getAuditTableName
(String entityName, String tableName) Gets the audit table name by looking up the entity in the defined custom tables and if not found returns a prefixed, suffixed audit table name.Returns a reference to theEnversService
.Class<? extends RevisionListener>
getRevisionPropertyPath
(String propertyName) todo: move this Get the revision property path.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setTrackEntitiesChanged
(boolean trackEntitiesChanged)
-
Constructor Details
-
Configuration
public Configuration(Properties properties, EnversService enversService, InFlightMetadataCollector metadata)
-
-
Method Details
-
isGenerateRevisionsForCollections
public boolean isGenerateRevisionsForCollections() -
isDoNotAuditOptimisticLockingField
public boolean isDoNotAuditOptimisticLockingField() -
isStoreDataAtDelete
public boolean isStoreDataAtDelete() -
isTrackEntitiesChanged
public boolean isTrackEntitiesChanged() -
setTrackEntitiesChanged
public void setTrackEntitiesChanged(boolean trackEntitiesChanged) -
hasSettingForUseModifiedFlag
public boolean hasSettingForUseModifiedFlag() -
isModifiedFlagsEnabled
public boolean isModifiedFlagsEnabled() -
isNativeIdEnabled
public boolean isNativeIdEnabled() -
isCascadeDeleteRevision
public boolean isCascadeDeleteRevision() -
isAllowIdentifierReuse
public boolean isAllowIdentifierReuse() -
isFindByRevisionExactMatch
public boolean isFindByRevisionExactMatch() -
isGlobalLegacyRelationTargetNotFound
public boolean isGlobalLegacyRelationTargetNotFound() -
isRevisionEndTimestampEnabled
public boolean isRevisionEndTimestampEnabled() -
isRevisionEndTimestampNumeric
public boolean isRevisionEndTimestampNumeric() -
isRevisionEndTimestampUseLegacyPlacement
public boolean isRevisionEndTimestampUseLegacyPlacement() -
isRevisionSequenceNoCache
public boolean isRevisionSequenceNoCache() -
getDefaultCatalogName
-
getDefaultSchemaName
-
getModifiedFlagsSuffix
-
getOriginalIdPropertyName
-
getRevisionFieldName
-
getRevisionEndTimestampFieldName
-
getRevisionEndFieldName
-
getRevisionNumberPath
-
getRevisionPropertyPath
todo: move this Get the revision property path.- Parameters:
propertyName
- the property name within the revision entity- Returns:
- path to the given property of the revision entity associated with the audited entity
-
getRevisionTypePropertyName
-
getRevisionTypePropertyType
-
getAuditEntityName
todo: move this Get the audit enttiy name.- Parameters:
entityName
- the entity name- Returns:
- the prefixed and suffixed audit entity name based on configuration
-
addCustomAuditTableName
-
getAuditTableName
Gets the audit table name by looking up the entity in the defined custom tables and if not found returns a prefixed, suffixed audit table name. In the latter case, the name is not registered.- Parameters:
entityName
- the entity nametableName
- the table name- Returns:
- the audit table name either from the custom defined tables or prefixed/suffixed inline
-
getAuditStrategyName
-
getEmbeddableSetOrdinalPropertyName
-
getRevisionListenerClass
-
getAuditStrategy
-
getModifiedColumnNamingStrategy
-
getRevisionInfo
-
getEnversService
Returns a reference to theEnversService
. This method is not recommended and discouraged, will be removed in a future release.- Returns:
- the envers service
-