feature/api-for-email-address-search-in-contacts #113

Merged
hsh-michaelhoennig merged 19 commits from feature/api-for-email-address-search-in-contacts into master 2024-10-11 17:06:46 +02:00
Showing only changes of commit 5d66bb84c3 - Show all commits

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() + "%");
}