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