Top Description Methods
org.hibernate.metamodel.mapping

public Interface EntityVersionMapping

extends BasicValuedModelPart
Known Direct Implementers
org.hibernate.metamodel.mapping.internal.EntityVersionMappingImpl
Imports
org.hibernate.engine.spi.VersionValue, org.hibernate.metamodel.mapping.internal.BasicAttributeMapping, org.hibernate.type.descriptor.java.VersionJavaType

Describes the mapping of an entity's version
See Also
jakarta.persistence.Version

Method Summary

Modifier and TypeMethod and Description
public default AttributeMapping
public default VersionJavaType<?>
public VersionJavaType<?>
getJavaType()

Redeclares org.hibernate.metamodel.mapping.ModelPart.getJavaType.

The Java type for this part.
public VersionValue
getUnsavedStrategy()

The strategy for distinguishing between detached and transient state based on the version mapping.

public BasicAttributeMapping
getVersionAttribute()

The attribute marked as the version

Inherited from org.hibernate.metamodel.mapping.BasicValuedModelPart:
forEachSelectableforEachSelectablegetJdbcMappinggetJdbcTypeCountgetPartMappingTypegetSelectablegetSingleJdbcMappinghasPartitionedSelectionMapping

Method Detail

asAttributeMappingback to summary
public default AttributeMapping asAttributeMapping()

Overrides default org.hibernate.metamodel.mapping.ModelPart.asAttributeMapping, org.hibernate.sql.results.graph.Fetchable.asAttributeMapping.

Annotations
@Override
getExpressibleJavaTypeback to summary
public default VersionJavaType<?> getExpressibleJavaType()

Overrides default org.hibernate.metamodel.mapping.ValueMapping.getExpressibleJavaType.

Annotations
@Override
getJavaTypeback to summary
public VersionJavaType<?> getJavaType()

Redeclares org.hibernate.metamodel.mapping.ModelPart.getJavaType.

Doc from org.hibernate.metamodel.mapping.ModelPart.getJavaType.

The Java type for this part. Generally equivalent to MappingType#getMappedJavaType() relative to getPartMappingType()

Annotations
@Override
getUnsavedStrategyback to summary
public VersionValue getUnsavedStrategy()

The strategy for distinguishing between detached and transient state based on the version mapping.

See Also
EntityIdentifierMapping#getUnsavedStrategy()
getVersionAttributeback to summary
public BasicAttributeMapping getVersionAttribute()

The attribute marked as the version