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.
criteria Builder
The criteria builder.
pattern
The pattern to match against.
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.
criteria Builder
The criteria builder.
pattern
The pattern to match against.