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 StringThe name of the fetchable.The model sub-part relative to the associated entity type that is the target of this association's foreign-keydefault booleanShould this Fetchable affect the fetch depth? E.g., composites would generally not increment the fetch depth.booleanbooleanMethods inherited from interface org.hibernate.metamodel.mapping.Association
getForeignKeyDescriptor, getSideNatureMethods inherited from interface org.hibernate.metamodel.mapping.Bindable
addToCacheKey, disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, getJdbcTypeCountMethods inherited from interface org.hibernate.sql.results.graph.Fetchable
asAttributeMapping, generateFetch, getFetchableKey, getMappedFetchOptions, isSelectable, resolveCircularFetchMethods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType, getJdbcMapping, getSingleJdbcMappingMethods 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, isVirtualMethods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer
findByPath, findByPath, findSubPart, forEachSubPart, forEachSubPart, visitSubPartsMethods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupJoinProducer
createRootTableGroupJoin, createTableGroupJoin, determineSqlJoinType, getDefaultSqlAstJoinType, isSimpleJoinPredicateMethods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupProducer
containsTableReference, getSqlAliasStem
-
Method Details
-
getFetchableName
Description copied from interface:FetchableThe name of the fetchable. This is the part's "local name".- Specified by:
getFetchableNamein 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:FetchableShould this Fetchable affect the fetch depth? E.g., composites would generally not increment the fetch depth.- Specified by:
incrementFetchDepthin interfaceFetchable- See Also:
-