fetchJoinWithPredicate

fun <T : Any, R> KProperty1<T, R>.fetchJoinWithPredicate(joinType: JoinType = JoinType.INNER, predicateBuilder: (From<T, R>, CriteriaBuilder) -> Predicate): Specification<T>(source)

Creates a Specification that performs a fetch-join and applies a Predicate to the fetch-joined entity.

Receiver

T – the type of the root entity.

R – the type of the fetch-joined entity.

Return

A Specification that performs the fetch-join and applies the predicate.

Parameters

joinType

The type of join to perform (defaults to JoinType.INNER).

predicateBuilder

A lambda that receives the fetch-joined entity path and criteria builder, and returns a predicate.