is True
fun <T> KProperty1<T, Boolean>.isTrue(path: Path<T>, criteriaBuilder: CriteriaBuilder): Predicate(source)
Creates a Predicate that checks if the Boolean property is true.
Receiver
T – the type of the entity.
Return
A Predicate that checks if the property is true.
Parameters
path
The path of the entity.
criteria Builder
The criteria builder.
fun <T> KProperty1<T, Boolean?>.isTrue(path: Path<T>, criteriaBuilder: CriteriaBuilder): Predicate(source)
Creates a Predicate that checks if the nullable Boolean property is true.
Receiver
T – the type of the entity.
Return
A Predicate that checks if the property is true.
Parameters
path
The path of the entity.
criteria Builder
The criteria builder.