notLike

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

Creates a Predicate that checks if the property does not match the given pattern.

Receiver

T – the type of the entity.

Return

A Predicate that checks if the property does not match the pattern.

Parameters

path

The path of the entity.

criteriaBuilder

The criteria builder.

pattern

The pattern to match against.


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

Creates a Predicate that checks if the property does not match the given pattern (nullable version).

Receiver

T – the type of the entity.

Return

A Predicate that checks if the property does not match the pattern.

Parameters

path

The path of the entity.

criteriaBuilder

The criteria builder.

pattern

The pattern to match against.