Top Description Methods
org.hibernate.metamodel.mapping

public Interface DiscriminatedAssociationModelPart

extends Discriminable, Fetchable, FetchableContainer, TableGroupJoinProducer
Known Direct Implementers
org.hibernate.metamodel.mapping.internal.DiscriminatedAssociationAttributeMapping, org.hibernate.metamodel.mapping.internal.DiscriminatedCollectionPart
Imports
org.hibernate.sql.ast.tree.from.TableGroupJoinProducer, org.hibernate.sql.ast.tree.predicate.Predicate, org.hibernate.sql.results.graph.Fetchable, .FetchableContainer

A discriminated association. This is similar to an association to a discriminator-subclass except that here the discriminator is kept on the association side, not the target side Commonality between org.hibernate.annotations.Any and org.hibernate.annotations.ManyToAny mappings.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public default BasicValuedModelPart
getDiscriminatorPart()

Deprecated for removal since 6.2. Use getDiscriminatorMapping instead.
public BasicValuedModelPart
public default boolean
isSimpleJoinPredicate(Predicate predicate)

Implements org.hibernate.sql.ast.tree.from.TableGroupJoinProducer.isSimpleJoinPredicate.

Returns whether the given predicate is a simple join predicate for this attribute.
public Object
public EntityMappingType
resolveDiscriminatorValue(Object discriminatorValue)

Inherited from org.hibernate.metamodel.mapping.Discriminable:
applyDiscriminatorgetDiscriminatorMapping
Inherited from org.hibernate.sql.ast.tree.from.TableGroupJoinProducer:
createRootTableGroupJoincreateTableGroupJoindetermineSqlJoinTypegetDefaultSqlAstJoinType
Inherited from org.hibernate.sql.results.graph.Fetchable:
asAttributeMappinggenerateFetchgetFetchableKeygetFetchableNamegetMappedFetchOptionsincrementFetchDepthisSelectableresolveCircularFetch
Inherited from org.hibernate.sql.results.graph.FetchableContainer:
getFetchablegetKeyFetchablegetNumberOfFetchableKeysgetNumberOfFetchablesgetNumberOfKeyFetchablesgetSelectableIndexvisitFetchablesvisitFetchablesvisitFetchablesvisitKeyFetchablesvisitKeyFetchablesvisitKeyFetchables

Method Detail

getDiscriminatorPartback to summary
public default BasicValuedModelPart getDiscriminatorPart()

Deprecated

for removal since 6.2.

Use getDiscriminatorMapping instead.

Annotations
@Deprecated
since:6.2
forRemoval:true
getKeyPartback to summary
public BasicValuedModelPart getKeyPart()
isSimpleJoinPredicateback to summary
public default boolean isSimpleJoinPredicate(Predicate predicate)

Implements org.hibernate.sql.ast.tree.from.TableGroupJoinProducer.isSimpleJoinPredicate.

Doc from org.hibernate.sql.ast.tree.from.TableGroupJoinProducer.isSimpleJoinPredicate.

Returns whether the given predicate is a simple join predicate for this attribute. This is useful to understand if a predicate has additional conjunctions other than the FK related predicate.

Annotations
@Override
resolveDiscriminatorForEntityTypeback to summary
public Object resolveDiscriminatorForEntityType(EntityMappingType entityMappingType)
resolveDiscriminatorValueback to summary
public EntityMappingType resolveDiscriminatorValue(Object discriminatorValue)