Class ImprovedModifiedColumnNamingStrategy
- java.lang.Object
-
- org.hibernate.envers.boot.internal.AbstractModifiedColumnNamingStrategy
-
- org.hibernate.envers.boot.internal.LegacyModifiedColumnNamingStrategy
-
- org.hibernate.envers.boot.internal.ImprovedModifiedColumnNamingStrategy
-
- All Implemented Interfaces:
ModifiedColumnNamingStrategy
public class ImprovedModifiedColumnNamingStrategy extends LegacyModifiedColumnNamingStrategy
AModifiedColumnNamingStrategy
that adds modified columns with the following rules:- For basic types, prioritizes audit annotation naming followed by physical column name appended with suffix.
- For associations with single column foreign keys, behaves like basic types.
- For associations with multiple column foreign keys, prioritizes audit annotation naming followed by using property name.
- For embeddables, behaves like associations with multiple column foreign keys
- Since:
- 5.4.7
-
-
Constructor Summary
Constructors Constructor Description ImprovedModifiedColumnNamingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addModifiedColumns(Configuration configuration, Value value, AttributeContainer mapping, PropertyAuditingData propertyAuditingData)
Adds modified columns to the audited entity metamodel.-
Methods inherited from class org.hibernate.envers.boot.internal.AbstractModifiedColumnNamingStrategy
createModifiedFlagAttribute, createModifiedFlagAttribute
-
-
-
-
Method Detail
-
addModifiedColumns
public void addModifiedColumns(Configuration configuration, Value value, AttributeContainer mapping, PropertyAuditingData propertyAuditingData)
Description copied from interface:ModifiedColumnNamingStrategy
Adds modified columns to the audited entity metamodel.- Specified by:
addModifiedColumns
in interfaceModifiedColumnNamingStrategy
- Overrides:
addModifiedColumns
in classLegacyModifiedColumnNamingStrategy
- Parameters:
configuration
- the envers configurationvalue
- the property valuemapping
- the entity mapping modelpropertyAuditingData
- the property auditing data
-
-