between
fun <T, P : Comparable<P>> KProperty1<T, P?>.between(path: Path<T>, criteriaBuilder: CriteriaBuilder, lower: P, upper: P): Predicate(source)
Creates a Predicate that checks if the property is between two values (inclusive).
Receiver
T – the type of the entity.
P - the type of the property, which must be Comparable.
Return
A Predicate that checks if the property is between the two values.
Parameters
path
The path of the entity.
criteria Builder
The criteria builder.
lower
The lower bound value (inclusive).
upper
The upper bound value (inclusive).