Skip to:
See test case: https://github.com/AlasdairMacleanGlobal/hibernate-orm/commit/6db733552a08c034b671c048545ab1071eb9a3a0
EntityManager.createQuery() throws: java.lang.IllegalArgumentException: Parameter value [] did not match expected type [java.lang.String
This seems to occur only when:
a named parameter is used, named "param0" (originally found in a Spring Data JPA-generated query, which generates parameter names "param"+<position>)
Changing the test code to cb.parameter(String.class, "paramA") for example doesn’t error
cb.parameter(String.class, "paramA")
An escape character is specified
I think “param0” is perfectly valid name. The issue doesn’t show up in v6 though.
Realising it’s possible “param0” is an invalid name for a parameter - apologies if that’s the case!
See test case: https://github.com/AlasdairMacleanGlobal/hibernate-orm/commit/6db733552a08c034b671c048545ab1071eb9a3a0
EntityManager.createQuery() throws: java.lang.IllegalArgumentException: Parameter value [] did not match expected type [java.lang.String
This seems to occur only when:
a named parameter is used, named "param0" (originally found in a Spring Data JPA-generated query, which generates parameter names "param"+<position>)
Changing the test code to
cb.parameter(String.class, "paramA")
for example doesn’t errorAn escape character is specified