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 EntityMappingTypegetAssociatedEntityMappingType()default StringgetFetchableName()The name of the fetchable.ModelPartgetKeyTargetMatchPart()The model sub-part relative to the associated entity type that is the target of this association's foreign-keySet<String>getTargetKeyPropertyNames()default booleanincrementFetchDepth()Should this Fetchable affect the fetch depth? E.g., composites would generally not increment the fetch depth.booleanisFkOptimizationAllowed()booleanisReferenceToPrimaryKey()-
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:FetchableThe name of the fetchable. This is the part's "local name".- Specified by:
getFetchableNamein 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:FetchableShould this Fetchable affect the fetch depth? E.g., composites would generally not increment the fetch depth.- Specified by:
incrementFetchDepthin interfaceFetchable- See Also:
AvailableSettings.MAX_FETCH_DEPTH
-
-