Spring Data StartsWith query throws InvalidDataAccessApiUsageException since Spring Boot 2.6.5 #30454
Labels
for: external-project
For an external project and not something we can fix
status: invalid
An issue that we don't feel is valid
There seems to be a bug in Hibernate-core 5.6.7.Final which is used with Spring Boot 2.6.5:
I reproduced the issue with a quite simple entity + repository:
The
countByAssessmentNameStartsWithAndCustomerId()
method works on first invocation but throws an exception on second invocation:The exception is:
See attached sample project based on Spring Init to reproduce the issue.
If changing the Hibernate-core version back to 5.6.5.Final, the test runs successful.
spring-data-bug.zip
The text was updated successfully, but these errors were encountered: