Top Description Methods
org.hibernate.metamodel.mapping

public Interface EntityAssociationMapping

extends ModelPart, Association, TableGroupJoinProducer
Known Direct Implementers
org.hibernate.metamodel.mapping.internal.ManyToManyCollectionPart, org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping
Imports
org.hibernate.sql.ast.tree.from.TableGroupJoinProducer

Commonality between `many-to-one`, `one-to-one` and `any`, as well as entity-valued collection elements and map-keys
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public EntityMappingType
public default String
public ModelPart
getKeyTargetMatchPart()

The model sub-part relative to the associated entity type that is the target of this association's foreign-key

public default boolean
incrementFetchDepth()

Overrides default org.hibernate.sql.results.graph.Fetchable.incrementFetchDepth.

Should this Fetchable affect the fetch depth?
public boolean
public boolean
Inherited from org.hibernate.metamodel.mapping.Association:
getForeignKeyDescriptorgetSideNature
Inherited from org.hibernate.metamodel.mapping.ModelPart:
applySqlSelectionsapplySqlSelectionsareEqualasAttributeMappingasEntityMappingTypebreakDownJdbcValuesbreakDownJdbcValuescreateDomainResultdecomposedecomposefindContainingEntityMappingforEachSelectableforEachSelectablegetJavaTypegetNavigableRolegetPartMappingTypegetPartNamehasPartitionedSelectionMappingisEntityIdentifierMappingisVirtual
Inherited from org.hibernate.sql.ast.tree.from.TableGroupJoinProducer:
createRootTableGroupJoincreateTableGroupJoindetermineSqlJoinTypegetDefaultSqlAstJoinTypeisSimpleJoinPredicate

Method Detail

getAssociatedEntityMappingTypeback to summary
public EntityMappingType getAssociatedEntityMappingType()
getFetchableNameback to summary
public default String getFetchableName()

Implements org.hibernate.sql.results.graph.Fetchable.getFetchableName.

Doc from org.hibernate.sql.results.graph.Fetchable.getFetchableName.

The name of the fetchable. This is the part's "local name".

Annotations
@Override
getKeyTargetMatchPartback to summary
public ModelPart getKeyTargetMatchPart()

The model sub-part relative to the associated entity type that is the target of this association's foreign-key

incrementFetchDepthback to summary
public default boolean incrementFetchDepth()

Overrides default org.hibernate.sql.results.graph.Fetchable.incrementFetchDepth.

Doc from org.hibernate.sql.results.graph.Fetchable.incrementFetchDepth.

Should this Fetchable affect the fetch depth? E.g., composites would generally not increment the fetch depth.

Annotations
@Override
isFkOptimizationAllowedback to summary
public boolean isFkOptimizationAllowed()
isReferenceToPrimaryKeyback to summary
public boolean isReferenceToPrimaryKey()