You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first call to getSimilarEntitiesName(String name) works as expected, but each subsequent calls give me an exception: org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [\] did not match expected type [java.lang.String (n/a)]
Weirdly enough, when I add @Param in my repository's method's argument everything works fine:
Java version: Oracle OpenJDK 17.0.1
Spring Boot version: 2.6.6
I have a very simple repository to list my entities by name starting with a prefix:
And a very simple service calling it :
The first call to
getSimilarEntitiesName(String name)
works as expected, but each subsequent calls give me an exception:org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [\] did not match expected type [java.lang.String (n/a)]
Weirdly enough, when I add
@Param
in my repository's method's argument everything works fine:Here is a complete sample project: spring-data-jpa-issue.zip
The text was updated successfully, but these errors were encountered: