isMember

fun <T, E, P : Collection<E>> KProperty1<T, P>.isMember(path: Path<T>, criteriaBuilder: CriteriaBuilder, value: E): Predicate(source)

Creates a Predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false.

Receiver

T – the type of the entity.

E - the type of the element in the Collection.

P - the type of the Collection property.

Return

A Predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false.

Parameters

path

The path of the entity.

criteriaBuilder

The criteria builder.

value

The element value to check for membership.