like

fun <T> KProperty1<T, String>.like(path: Path<T>, criteriaBuilder: CriteriaBuilder, pattern: String): Predicate(source)

Creates a Predicate that checks if the property matches the given pattern.

Receiver

T – the type of the entity.

Return

A Predicate that checks if the property matches the pattern.

Parameters

path

The path of the entity.

criteriaBuilder

The criteria builder.

pattern

The pattern to match against.


@JvmName(name = "likeNullable")
fun <T> KProperty1<T, String?>.like(path: Path<T>, criteriaBuilder: CriteriaBuilder, pattern: String): Predicate(source)

Creates a Predicate that checks if the property matches the given pattern (nullable version).

Receiver

T – the type of the entity.

Return

A Predicate that checks if the property matches the pattern.

Parameters

path

The path of the entity.

criteriaBuilder

The criteria builder.

pattern

The pattern to match against.