-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Use Class, Enum, Constants, ... inside @Query anontation #3651
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
Comments
We're exploring DTO rewriting with #3076. Our query rewriting is intentionally limited. We do not want to parse queries in order to build another model of the query. For using constants: You can always use parametrized queries and pass in the external value. Hibernate calls out that enum literals do not require qualifiers. Any non-entity-related constants must be fully-qualified. That being said, it seems that there's nothing actionable left in the ticket. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Dear Team,
I hope this message finds you well.
I wanted to bring up a concern regarding the use of DTO projects, particularly when it comes to utilizing constants in @query annotations without specifying their full relative paths. For example, I currently have the following query:
While the integrator can assist to some extent, the long and often duplicated paths can be quite inconvenient in our projects.
Could you please provide support in finding a more efficient solution for this situation? Your assistance would greatly enhance our workflow.
Thank you for your help!
David
The text was updated successfully, but these errors were encountered: