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
  • Method Details

    • 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 interface Fetchable
      See Also:
    • getAssociatedEntityMappingType

      EntityMappingType getAssociatedEntityMappingType()
    • getTargetKeyPropertyNames

      Set<String> 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 interface Fetchable
      See Also: