Package org.hibernate.metamodel.mapping
Interface EntityAssociationMapping
-
- All Superinterfaces:
Association
,Bindable
,Fetchable
,JdbcMappingContainer
,MappingModelExpressible
,ModelPart
,ModelPartContainer
,TableGroupJoinProducer
,TableGroupProducer
- All Known Implementing Classes:
ManyToManyCollectionPart
,ToOneAttributeMapping
public interface EntityAssociationMapping extends ModelPart, Association, TableGroupJoinProducer
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EntityMappingType
getAssociatedEntityMappingType()
default String
getFetchableName()
The name of the fetchable.ModelPart
getKeyTargetMatchPart()
The model sub-part relative to the associated entity type that is the target of this association's foreign-keySet<String>
getTargetKeyPropertyNames()
default boolean
incrementFetchDepth()
Should this Fetchable affect the fetch depth? E.g., composites would generally not increment the fetch depth.boolean
isFkOptimizationAllowed()
boolean
isReferenceToPrimaryKey()
-
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, getJdbcMappings, 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 Detail
-
getFetchableName
default String 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:
ModelPart.getNavigableRole()
,NavigableRole.getLocalName()
-
getAssociatedEntityMappingType
EntityMappingType getAssociatedEntityMappingType()
-
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:
AvailableSettings.MAX_FETCH_DEPTH
-
-