isTrue

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.

criteriaBuilder

The criteria builder.


@JvmName(name = "isTrueNullable")
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.

criteriaBuilder

The criteria builder.