-
Notifications
You must be signed in to change notification settings - Fork 1.5k
@Query(countName = …)
not considered
#2217
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
Labels
type: bug
A general bug
Milestone
Comments
Please provide a Minimimal Reproducable Example, preferable as a Github repository. Make sure to include the database, either as an in memory database or if that is not possible using Testcontainers. |
@Query(countName = …)
not considered
mp911de
added a commit
that referenced
this issue
Oct 13, 2021
We now consider `@Query(countName = "…")` when the actual query is a string query or named query using Properties to declare its query. Named queries using JPA named queries remain unchanged. Closes #2217
mp911de
added a commit
that referenced
this issue
Oct 13, 2021
Make query factory methods non-nullable by moving conditionals to the lookup strategy. See #2217
mp911de
added a commit
that referenced
this issue
Oct 13, 2021
We now consider `@Query(countName = "…")` when the actual query is a string query or named query using Properties to declare its query. Named queries using JPA named queries remain unchanged. Closes #2217
mp911de
added a commit
that referenced
this issue
Oct 13, 2021
Make query factory methods non-nullable by moving conditionals to the lookup strategy. See #2217
mp911de
added a commit
that referenced
this issue
Oct 13, 2021
Make query factory methods non-nullable by moving conditionals to the lookup strategy. See #2217
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to execute some native queries using the @query annotation with Spring and I'm having the follow problem:
I have a file called: jpa-named-queries.properties where I put my queries and I have one query to get the data and one query to count the data.
and I have the Repository method to use the queries:
The problem is If I execute as shown above the queries execute are:
And thats cause a exception because the query executed makes no sense.
The text was updated successfully, but these errors were encountered: