Package org.hibernate.metamodel.mapping
Interface NonAggregatedIdentifierMapping
-
- All Superinterfaces:
Bindable
,CompositeIdentifierMapping
,EmbeddableValuedFetchable
,EmbeddableValuedModelPart
,EntityIdentifierMapping
,Fetchable
,FetchableContainer
,FetchOptions
,FetchStyleAccess
,FetchTimingAccess
,JavaTypedExpressible
,JdbcMappingContainer
,MappingModelExpressible
,ModelPart
,ModelPartContainer
,Queryable
,TableGroupJoinProducer
,TableGroupProducer
,ValueMapping
,VirtualModelPart
- All Known Implementing Classes:
AnonymousTupleNonAggregatedEntityIdentifierMapping
,InverseNonAggregatedIdentifierMapping
,NonAggregatedIdentifierMappingImpl
public interface NonAggregatedIdentifierMapping extends CompositeIdentifierMapping, EmbeddableValuedFetchable, FetchOptions, VirtualModelPart
A "non-aggregated" composite identifier, which means that the entity itself does not define a singular representation of its identifier like anEmbeddedId
does. An IdClass can be used to provide a simple, singular representation of the identifier for easier reference in API calls. JPA requires using an IdClass when mapping such identifiers. Hibernate supports mapping such identifiers with or without the IdClass; without, the entity itself is used as the identifier.- See Also:
IdClass
,MapsId
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
NonAggregatedIdentifierMapping.IdentifierValueMapper
Think of an AttributeConverter for id values to account for representation difference between virtual and id-class mappings-
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 Modifier and Type Method Description IdClassEmbeddable
getIdClassEmbeddable()
The id-class representation of this id mappingNonAggregatedIdentifierMapping.IdentifierValueMapper
getIdentifierValueMapper()
The id-class, if there is one, otherwise the virtual-id.VirtualIdEmbeddable
getVirtualIdEmbeddable()
The virtual-id representation of this id mapping-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue
-
Methods inherited from interface org.hibernate.metamodel.mapping.CompositeIdentifierMapping
getMappedIdEmbeddableTypeDescriptor, getPartMappingType, getUnsavedStrategy, hasContainingClass
-
Methods inherited from interface org.hibernate.sql.results.graph.embeddable.EmbeddableValuedFetchable
getDefaultSqlAstJoinType, isSimpleJoinPredicate
-
Methods inherited from interface org.hibernate.metamodel.mapping.EmbeddableValuedModelPart
disassemble, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachSelectable, getContainingTableExpression, getEmbeddableTypeDescriptor, getJdbcMappings, getJdbcTypeCount, getParentInjectionAttributePropertyAccess, toSqlExpression
-
Methods inherited from interface org.hibernate.metamodel.mapping.EntityIdentifierMapping
getIdentifier, getIdentifier, getIdentifierIfNotUnsaved, getPartName, instantiate, setIdentifier
-
Methods inherited from interface org.hibernate.sql.results.graph.Fetchable
asAttributeMapping, generateFetch, getFetchableName, getMappedFetchOptions, incrementFetchDepth, resolveCircularFetch
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchableContainer
getFetchable, getKeyFetchable, getNumberOfFetchables, getNumberOfKeyFetchables, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchables
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchStyleAccess
getStyle
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchTimingAccess
getTiming
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, breakDownJdbcValues, createDomainResult, findContainingEntityMapping, forEachSelectable, getJavaType, getNavigableRole
-
Methods inherited from interface org.hibernate.metamodel.mapping.Queryable
findByPath, findSubPart, findSubTypesSubPart, resolveSubPart, visitSubParts
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupJoinProducer
createRootTableGroupJoin, createRootTableGroupJoin, createTableGroupJoin, createTableGroupJoin
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupProducer
containsTableReference, getSqlAliasStem
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, getMappedType, treatAs
-
-
-
-
Method Detail
-
getVirtualIdEmbeddable
VirtualIdEmbeddable getVirtualIdEmbeddable()
The virtual-id representation of this id mapping
-
getIdClassEmbeddable
IdClassEmbeddable getIdClassEmbeddable()
The id-class representation of this id mapping
-
getIdentifierValueMapper
NonAggregatedIdentifierMapping.IdentifierValueMapper getIdentifierValueMapper()
The id-class, if there is one, otherwise the virtual-id.
-
-