-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JpaRepository when used @Query, add the #3217
Comments
You are always free to use a custom implementation. When limited by whatever reason, the docs at https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.custom-implementations show how you can leverage custom solutions but still hook your solution into your repository. |
Thanks, @gregturn , for citing the doc link. |
From what I understand, this feature no longer works, however, isn't there a workaround? |
wrong closed issue... |
As Greg mentioned, we typically do not backport enhancements. Also, that one was more elaborate and introduces quite some risk, hence we do not want to introduce the risk of breaking an otherwise stable version line. Please also note that Spring Data 2.7 is no longer supported and we recommend upgrading to Spring Data JPA 3.1 at your earliest convenience. |
I use the SpringBoot and JPA, but when i updated the spring-boot-starter-parent to 2.5.15 from 2.7.17.
After the update, my app thorw the exception when execute one especific query from the database by JPA (spring-data-jpa) with @query.
In sumary, i have this repository
My entity of database:
When, the system execute this query with any value in the param processId and userName the database oracle throw the exception:
Checked the SQL executed is different that the named Query in JPA.
@query the JPARepository:
SQL executed inside the database:
Observe, the SQL executed have in the end of command the fetch first :5 rows only. I not put this command in the @query.
Can you help me?
The text was updated successfully, but these errors were encountered: