HHH-17807 fix array-typed query method parameters

This commit is contained in:
Gavin King 2024-03-05 17:29:10 +01:00
parent 0f291a8d8d
commit 691a2d8109
1 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,7 @@ public class QueryMethod extends AbstractQueryMethod {
}
private String getConstantName() {
String stem = getUpperUnderscoreCaseFromLowerCamelCase(methodName);
final String stem = getUpperUnderscoreCaseFromLowerCamelCase(methodName);
if ( paramTypes.isEmpty() ) {
return stem;
}
@ -285,6 +285,7 @@ public class QueryMethod extends AbstractQueryMethod {
+ paramTypes.stream()
.filter(type -> !isSpecialParam(type))
.map(StringHelper::unqualify)
.map(type -> type.replace("[]", "Array"))
.reduce((x,y) -> x + '_' + y)
.orElse("");
}