I am getting an exception that there are no parameters to a native queries when there are #47105
-
Hi I have a project with Quarkus 3.21.0 with a native query, but when I execute it I got: So it is like no parameters are detected: The class is
And the whole project is at https://github.com/lordofthejars-ai/applied-ai-for-enterprise-java-development-src/tree/main/ch09/scheduler-calendar And it is using H2 driver so nothing is required. Thank you very much |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You're using |
Beta Was this translation helpful? Give feedback.
-
Thank you very much mate. Yes similar method name but completely different
purpose 😁 I burned my eyes trying to figure out why was not working. Thanks
Enviat amb Gmail Mobile
El dt, 1 abr. 2025 a les 19:02 Eric Deandrea ***@***.***> va
escriure:
… You're using createNativeQuery not createNamedQuery. createNativeQuery
expects the query itself, whereas createNamedQuery expects the name of a
named query.
—
Reply to this email directly, view it on GitHub
<#47105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALSMYKOE2BQ7O36OZIHQ4L2XLBCHAVCNFSM6AAAAAB2HBSQJKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRZGEZDMNY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
You're using
createNativeQuery
notcreateNamedQuery
.createNativeQuery
expects the query itself, whereascreateNamedQuery
expects the name of a named query.