handle generic-typed parameters of query methods

This commit is contained in:
Gavin King 2024-03-05 20:26:51 +01:00
parent 19023a491e
commit ebd72f8470
1 changed files with 1 additions and 0 deletions

View File

@ -284,6 +284,7 @@ public class QueryMethod extends AbstractQueryMethod {
return stem + "_"
+ paramTypes.stream()
.filter(type -> !isSpecialParam(type))
.map(type -> type.indexOf('<')>0 ? type.substring(0, type.indexOf('<')) : type)
.map(StringHelper::unqualify)
.map(type -> type.replace("[]", "Array"))
.reduce((x,y) -> x + '_' + y)