forLike -> toSqlLikeOperand
This commit is contained in:
parent
ddfe8b68cf
commit
5d66bb84c3
@ -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() + "%");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user