Top Description Methods
org.hibernate.query.criteria

public Interface JpaSetJoin<O, T>

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

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

Method Summary

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

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

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

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

Modify the join to restrict the result according to the specified ON condition and return the join object.
public <S extends T> JpaSetJoin<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> JpaSetJoin<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.SetJoin:
getModel
Inherited from org.hibernate.query.criteria.JpaPluralJoin:
getAttribute

Method Detail

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

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

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

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

Doc from jakarta.persistence.criteria.SetJoin.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:JpaSetJoin<O, T>

the modified join object

onback to summary
public JpaSetJoin<O, T> on(JpaPredicate... restrictions)

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

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

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

Doc from jakarta.persistence.criteria.SetJoin.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:JpaSetJoin<O, T>

the modified join object

Annotations
@Override
treatAsback to summary
public <S extends T> JpaSetJoin<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> JpaSetJoin<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