Class LegacyModifiedColumnNamingStrategy
- java.lang.Object
-
- org.hibernate.envers.boot.internal.AbstractModifiedColumnNamingStrategy
-
- org.hibernate.envers.boot.internal.LegacyModifiedColumnNamingStrategy
-
- All Implemented Interfaces:
ModifiedColumnNamingStrategy
- Direct Known Subclasses:
ImprovedModifiedColumnNamingStrategy
public class LegacyModifiedColumnNamingStrategy extends AbstractModifiedColumnNamingStrategy
AModifiedColumnNamingStrategy
that adds modified columns with the following rules:- If an audit annotation modified column name is supplied, use it directly with no suffix.
- If no audit annotation modified column name is present, use the property name appended with suffix.
- Since:
- 5.4.7
-
-
Constructor Summary
Constructors Constructor Description LegacyModifiedColumnNamingStrategy()
-
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.- Parameters:
configuration
- the envers configurationvalue
- the property valuemapping
- the entity mapping modelpropertyAuditingData
- the property auditing data
-
-