forLike -> toSqlLikeOperand
This commit is contained in:
parent
ddfe8b68cf
commit
5d66bb84c3
@ -33,7 +33,7 @@ public interface HsOfficeRelationRbacRepository extends Repository<HsOfficeRelat
|
|||||||
String personData,
|
String personData,
|
||||||
String contactData) {
|
String contactData) {
|
||||||
return findRelationRelatedToPersonUuidRelationTypePersonAndContactDataImpl(
|
return findRelationRelatedToPersonUuidRelationTypePersonAndContactDataImpl(
|
||||||
personUuid, toStringOrNull(relationType), forLike(personData), forLike(contactData));
|
personUuid, toStringOrNull(relationType), toSqlLikeOperand(personData), toSqlLikeOperand(contactData));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Query(value = """
|
@Query(value = """
|
||||||
@ -63,7 +63,7 @@ public interface HsOfficeRelationRbacRepository extends Repository<HsOfficeRelat
|
|||||||
|
|
||||||
int deleteByUuid(UUID uuid);
|
int deleteByUuid(UUID uuid);
|
||||||
|
|
||||||
private static String forLike(final String text) {
|
private static String toSqlLikeOperand(final String text) {
|
||||||
return text == null ? null : ("%" + text.toLowerCase() + "%");
|
return text == null ? null : ("%" + text.toLowerCase() + "%");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user