Package org.hibernate.metamodel.mapping
Interface EntityAssociationMapping
- All Superinterfaces:
Association
,Bindable
,Fetchable
,JdbcMappingContainer
,MappingModelExpressible
,ModelPart
,ModelPartContainer
,TableGroupJoinProducer
,TableGroupProducer
- All Known Implementing Classes:
ManyToManyCollectionPart
,ToOneAttributeMapping
Commonality between `many-to-one`, `one-to-one` and `any`, as well as entity-valued collection elements and map-keys
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesBiConsumer<X,
Y>, Bindable.JdbcValuesConsumer Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.ModelPart
ModelPart.JdbcValueBiConsumer<X,
Y>, ModelPart.JdbcValueConsumer -
Method Summary
Modifier and TypeMethodDescriptiondefault String
The name of the fetchable.The model sub-part relative to the associated entity type that is the target of this association's foreign-keydefault boolean
Should this Fetchable affect the fetch depth? E.g., composites would generally not increment the fetch depth.boolean
boolean
Methods inherited from interface org.hibernate.metamodel.mapping.Association
getForeignKeyDescriptor, getSideNature
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
addToCacheKey, disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, getJdbcTypeCount
Methods inherited from interface org.hibernate.sql.results.graph.Fetchable
asAttributeMapping, generateFetch, getFetchableKey, getMappedFetchOptions, isSelectable, resolveCircularFetch
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType, getJdbcMapping, getSingleJdbcMapping
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
applySqlSelections, applySqlSelections, areEqual, asBasicValuedModelPart, asEntityMappingType, breakDownJdbcValues, breakDownJdbcValues, createDomainResult, decompose, decompose, findContainingEntityMapping, forEachSelectable, forEachSelectable, getJavaType, getNavigableRole, getPartMappingType, getPartName, hasPartitionedSelectionMapping, isEntityIdentifierMapping, isVirtual
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer
findByPath, findByPath, findSubPart, forEachSubPart, forEachSubPart, visitSubParts
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupJoinProducer
createRootTableGroupJoin, createTableGroupJoin, determineSqlJoinType, getDefaultSqlAstJoinType, isSimpleJoinPredicate
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupProducer
containsTableReference, getSqlAliasStem
-
Method Details
-
getFetchableName
Description copied from interface:Fetchable
The name of the fetchable. This is the part's "local name".- Specified by:
getFetchableName
in interfaceFetchable
- See Also:
-
getAssociatedEntityMappingType
EntityMappingType getAssociatedEntityMappingType() -
getTargetKeyPropertyNames
-
getKeyTargetMatchPart
ModelPart getKeyTargetMatchPart()The model sub-part relative to the associated entity type that is the target of this association's foreign-key -
isReferenceToPrimaryKey
boolean isReferenceToPrimaryKey() -
isFkOptimizationAllowed
boolean isFkOptimizationAllowed() -
incrementFetchDepth
default boolean incrementFetchDepth()Description copied from interface:Fetchable
Should this Fetchable affect the fetch depth? E.g., composites would generally not increment the fetch depth.- Specified by:
incrementFetchDepth
in interfaceFetchable
- See Also:
-