join With Predicate
fun <T : Any, R> KProperty1<T, R>.joinWithPredicate(joinType: JoinType = JoinType.INNER, predicateBuilder: (From<T, R>, CriteriaBuilder) -> Predicate): PredicateSpecification<T>(source)
Creates a PredicateSpecification that performs a join and applies a Predicate to the joined entity.
Receiver
T – the type of the root entity.
R – the type of the joined entity.
Return
A PredicateSpecification that performs the join and applies the predicate.
Parameters
join Type
The type of join to perform (defaults to JoinType.INNER).
predicate Builder
A lambda that receives the joined entity path and criteria builder, and returns a predicate.