Package org.hibernate.metamodel.mapping
Interface CompositeIdentifierMapping
-
- All Superinterfaces:
Bindable,EntityIdentifierMapping,JavaTypedExpressible,JdbcMappingContainer,MappingModelExpressible,ModelPart,ValueMapping
- All Known Subinterfaces:
NonAggregatedIdentifierMapping
- All Known Implementing Classes:
AbstractCompositeIdentifierMapping,AnonymousTupleEmbeddedEntityIdentifierMapping,AnonymousTupleNonAggregatedEntityIdentifierMapping,EmbeddedIdentifierMappingImpl,InverseNonAggregatedIdentifierMapping,NonAggregatedIdentifierMappingImpl
public interface CompositeIdentifierMapping extends EntityIdentifierMapping
Mapping for a composite identifier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesConsumer
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.ModelPart
ModelPart.JdbcValueConsumer
-
-
Field Summary
-
Fields inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
ROLE_LOCAL_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EmbeddableMappingTypegetMappedIdEmbeddableTypeDescriptor()Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.EmbeddableMappingTypegetPartMappingType()default IdentifierValuegetUnsavedStrategy()The strategy for distinguishing between detached and transient state based on the identifier mappingbooleanhasContainingClass()Does the identifier have a corresponding EmbeddableId or IdClass?-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, getJdbcMappings, getJdbcTypeCount
-
Methods inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
getIdentifier, getIdentifier, getIdentifierIfNotUnsaved, getPartName, instantiate, setIdentifier
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, asAttributeMapping, breakDownJdbcValues, createDomainResult, findContainingEntityMapping, forEachSelectable, forEachSelectable, getJavaType, getNavigableRole
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, getMappedType, treatAs
-
-
-
-
Method Detail
-
getUnsavedStrategy
default IdentifierValue getUnsavedStrategy()
Description copied from interface:EntityIdentifierMappingThe strategy for distinguishing between detached and transient state based on the identifier mapping- Specified by:
getUnsavedStrategyin interfaceEntityIdentifierMapping
-
hasContainingClass
boolean hasContainingClass()
Does the identifier have a corresponding EmbeddableId or IdClass?- Returns:
- false if there is not an IdCass or an EmbeddableId
-
getPartMappingType
EmbeddableMappingType getPartMappingType()
- Specified by:
getPartMappingTypein interfaceModelPart
-
getMappedIdEmbeddableTypeDescriptor
EmbeddableMappingType getMappedIdEmbeddableTypeDescriptor()
Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.
-
-