like

fun <T : Any> KProperty1<T, String>.like(pattern: String): PredicateSpecification<T>(source)

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

Receiver

T – the type of the entity.

Return

A PredicateSpecification that checks if the property matches the pattern.

Parameters

pattern

– The pattern to match against.


@JvmName(name = "likeNullable")
fun <T : Any> KProperty1<T, String?>.like(pattern: String): PredicateSpecification<T>(source)

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

Receiver

T – the type of the entity.

Return

A PredicateSpecification that checks if the property matches the pattern.

Parameters

pattern

– The pattern to match against.