Class LongVersionColumnSizeEvent
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.LongVersionColumnSizeEvent
- All Implemented Interfaces:
Event,Serializable
The
LongVersionColumnSizeEvent indicates that an entity attribute is mapped
as a long or Long Version property which
requires an 8-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
ConstructorsConstructorDescriptionLongVersionColumnSizeEvent(EntityMetadata entityMetadata, String entityAttribute) -
Method Summary
Modifier and TypeMethodDescriptionprotected intSpecify that the underlyingVersionproperty requires an 8-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
-
LongVersionColumnSizeEvent
-
-
Method Details
-
getVersionColumnByteCount
protected int getVersionColumnByteCount()Specify that the underlyingVersionproperty requires an 8-byte column type.- Specified by:
getVersionColumnByteCountin classAbstractVersionColumnSizeEvent- Returns:
Versioncolumn size
-