Top Description Methods
org.hibernate.query.criteria

public Interface JpaCollectionJoin<O, T>

extends JpaPluralJoin<O, Collection<T>, T>, CollectionJoin<O, T>
Known Direct Implementers
org.hibernate.query.sqm.tree.domain.SqmBagJoin
Imports
java.util.Collection, org.hibernate.metamodel.model.domain.EntityDomainType, jakarta.persistence.criteria.CollectionJoin, .Expression, .Predicate

Specialization of JpaJoin for java.util.Collection typed attribute joins
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public JpaCollectionJoin<O, T>
public JpaCollectionJoin<O, T>
on(Expression<Boolean>
a simple or compound boolean expression
restriction
)

Redeclares org.hibernate.query.criteria.JpaPluralJoin.on, jakarta.persistence.criteria.CollectionJoin.on.

Modify the join to restrict the result according to the specified ON condition and return the join object.
public JpaCollectionJoin<O, T>
public JpaCollectionJoin<O, T>
on(Predicate...
zero or more restriction predicates
restrictions
)

Redeclares org.hibernate.query.criteria.JpaPluralJoin.on, jakarta.persistence.criteria.CollectionJoin.on.

Modify the join to restrict the result according to the specified ON condition and return the join object.
public <S extends T> JpaCollectionJoin<O, S>
treatAs(Class<S> treatAsType)

Redeclares org.hibernate.query.criteria.JpaPluralJoin.treatAs.

Support for JPA's explicit (TREAT) down-casting.
public <S extends T> JpaCollectionJoin<O, S>
treatAs(EntityDomainType<S> treatAsType)

Redeclares org.hibernate.query.criteria.JpaPluralJoin.treatAs.

Support for JPA's explicit (TREAT) down-casting.
Inherited from jakarta.persistence.criteria.CollectionJoin:
getModel
Inherited from org.hibernate.query.criteria.JpaPluralJoin:
getAttribute

Method Detail

onback to summary
public JpaCollectionJoin<O, T> on(JpaExpression<Boolean> restriction)

Redeclares org.hibernate.query.criteria.JpaPluralJoin.on.

Annotations
@Override
onback to summary
public JpaCollectionJoin<O, T> on(Expression<Boolean> restriction)

Redeclares org.hibernate.query.criteria.JpaPluralJoin.on, jakarta.persistence.criteria.CollectionJoin.on.

Doc from jakarta.persistence.criteria.CollectionJoin.on.

Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any.

Parameters
restriction:Expression<Boolean>

a simple or compound boolean expression

Returns:JpaCollectionJoin<O, T>

the modified join object

Annotations
@Override
onback to summary
public JpaCollectionJoin<O, T> on(JpaPredicate... restrictions)

Redeclares org.hibernate.query.criteria.JpaPluralJoin.on.

Annotations
@Override
onback to summary
public JpaCollectionJoin<O, T> on(Predicate... restrictions)

Redeclares org.hibernate.query.criteria.JpaPluralJoin.on, jakarta.persistence.criteria.CollectionJoin.on.

Doc from jakarta.persistence.criteria.CollectionJoin.on.

Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any.

Parameters
restrictions:Predicate[]

zero or more restriction predicates

Returns:JpaCollectionJoin<O, T>

the modified join object

Annotations
@Override
treatAsback to summary
public <S extends T> JpaCollectionJoin<O, S> treatAs(Class<S> treatAsType)

Redeclares org.hibernate.query.criteria.JpaPluralJoin.treatAs.

Doc from org.hibernate.query.criteria.JpaPath.treatAs.

Support for JPA's explicit (TREAT) down-casting.

Annotations
@Override
treatAsback to summary
public <S extends T> JpaCollectionJoin<O, S> treatAs(EntityDomainType<S> treatAsType)

Redeclares org.hibernate.query.criteria.JpaPluralJoin.treatAs.

Doc from org.hibernate.query.criteria.JpaPath.treatAs.

Support for JPA's explicit (TREAT) down-casting.

Annotations
@Override