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
Proposed Fix for Spring Data JPA 3.5.0 Incompatibility
I've investigated this incompatibility with Spring Data JPA 3.5.0 and have a proposed fix.
The changes involve two parts:
pom.xml modification:
I updated the spring.data.jpa dependency version:
<spring.data.jpa>3.2.1</spring.data.jpa>
to
<spring.data.jpa>3.5.0</spring.data.jpa>
EntityGraphAwareJpaQueryMethod.java class update:
The EntityGraphAwareJpaQueryMethod class needs to be updated to support the new JpaQueryMethod constructor signature in Spring Data JPA 3.5.0. Here's the updated class:
Uh oh!
There was an error while loading. Please reload this page.
What steps will reproduce the problem ?
Steps to reproduce the behavior:
What is the expected output ?
The project should build successfully, and all existing tests should pass without errors, demonstrating compatibility with Spring Data JPA 3.5.0.
What happens instead ?
Existing tests fail with java.lang.IllegalArgumentException. Specifically, many tests produce the following error:
Caused by: java.lang.IllegalArgumentException: At least 2 parameter(s) provided but only 1 parameter(s) present in query
Environment
The text was updated successfully, but these errors were encountered: