ilike

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

Creates a Predicate that checks if the property matches the given pattern, ignoring case sensitivity.

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.

Type Parameters

T

the type of the entity.


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

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

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.

Type Parameters

T

the type of the entity.


fun <ROOT> NestedProperty<ROOT, String>.ilike(path: Path<ROOT>, criteriaBuilder: CriteriaBuilder, pattern: String): Predicate(source)

Creates a Predicate that checks if the nested String property matches the given pattern, ignoring case sensitivity.

Return

A Predicate that checks if the nested property matches the pattern.

Parameters

path

The path of the root entity.

criteriaBuilder

The criteria builder.

pattern

The pattern to match against.

Type Parameters

ROOT

the root entity type.


@JvmName(name = "nestedIlikeNullable")
fun <ROOT> NestedProperty<ROOT, String?>.ilike(path: Path<ROOT>, criteriaBuilder: CriteriaBuilder, pattern: String): Predicate(source)

Creates a Predicate that checks if the nested nullable String property matches the given pattern, ignoring case sensitivity (nullable version).

Return

A Predicate that checks if the nested property matches the pattern.

Parameters

path

The path of the root entity.

criteriaBuilder

The criteria builder.

pattern

The pattern to match against.

Type Parameters

ROOT

the root entity type.