join With Predicates
fun <T : Any, R> KProperty1<T, R>.joinWithPredicates(joinType: JoinType = JoinType.INNER, predicateBuilder: (From<T, R>, CriteriaBuilder) -> List<Predicate>): PredicateSpecification<T>(source)
Creates a PredicateSpecification that performs a join and applies a list of Predicates by ANDing them 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 predicates.
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.