Class IntegerVersionColumnSizeEvent
java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.mapping.EntityMappingEvent
io.hypersistence.optimizer.hibernate.event.mapping.EntityAttributeMappingEvent
io.hypersistence.optimizer.hibernate.event.mapping.basic.AbstractVersionColumnSizeEvent
io.hypersistence.optimizer.hibernate.event.mapping.basic.IntegerVersionColumnSizeEvent
- All Implemented Interfaces:
Event,Serializable
The
IntegerVersionColumnSizeEvent indicates that an entity attribute is mapped
as a int or Integer Version property which
requires an 4-byte column type.- Since:
- 1.0.0
- Author:
- Vlad Mihalcea
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.hypersistence.optimizer.core.event.Event
Event.Priority -
Constructor Summary
ConstructorsConstructorDescriptionIntegerVersionColumnSizeEvent(EntityMetadata entityMetadata, String entityAttribute) -
Method Summary
Modifier and TypeMethodDescriptionprotected intSpecify that the underlyingVersionproperty requires a 4-byte column type.Methods inherited from class io.hypersistence.optimizer.hibernate.event.mapping.basic.AbstractVersionColumnSizeEvent
getDescription, getPriorityMethods inherited from class io.hypersistence.optimizer.hibernate.event.mapping.EntityAttributeMappingEvent
getEntityAttributeMethods inherited from class io.hypersistence.optimizer.hibernate.event.mapping.EntityMappingEvent
getEntityClass, getEntityNameMethods inherited from class io.hypersistence.optimizer.core.event.AbstractEvent
getInfoUrl
-
Constructor Details
-
IntegerVersionColumnSizeEvent
-
-
Method Details
-
getVersionColumnByteCount
protected int getVersionColumnByteCount()Specify that the underlyingVersionproperty requires a 4-byte column type.- Specified by:
getVersionColumnByteCountin classAbstractVersionColumnSizeEvent- Returns:
Versioncolumn size
-