in

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

Creates a Predicate that checks if the property's value is in the given value.

Receiver

T – the type of the entity.

P - the type of the property.

Return

A Predicate that checks if the property is in the value.

Parameters

path

The path of the entity.

criteriaBuilder

The criteria builder.

value

The value to check for inclusion (can be a Collection).