forLike -> toSqlLikeOperand

This commit is contained in:
Michael Hoennig 2024-10-11 09:51:55 +02:00
parent ddfe8b68cf
commit 5d66bb84c3

View File

@ -33,7 +33,7 @@ public interface HsOfficeRelationRbacRepository extends Repository<HsOfficeRelat
String personData,
String contactData) {
return findRelationRelatedToPersonUuidRelationTypePersonAndContactDataImpl(
personUuid, toStringOrNull(relationType), forLike(personData), forLike(contactData));
personUuid, toStringOrNull(relationType), toSqlLikeOperand(personData), toSqlLikeOperand(contactData));
}
@Query(value = """
@ -63,7 +63,7 @@ public interface HsOfficeRelationRbacRepository extends Repository<HsOfficeRelat
int deleteByUuid(UUID uuid);
private static String forLike(final String text) {
private static String toSqlLikeOperand(final String text) {
return text == null ? null : ("%" + text.toLowerCase() + "%");
}