HHH-17807 fix array-typed query method parameters
This commit is contained in:
parent
0f291a8d8d
commit
691a2d8109
|
@ -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("");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue