This content has been marked as final.
Show 4 replies
-
1. Re: How To Use Positional Parameter in HQL Editor
dgolovin Oct 8, 2012 12:24 AM (in response to xsalefter)1 of 1 people found this helpfulJDBC-style ? parameters are also supported. You may not mix and match JDBC-style parameters and named parameters in the same query. In your example you should use just ? instead of ?1, ?2, ..., ?n.
-
2. Re: How To Use Positional Parameter in HQL Editor
xsalefter Oct 8, 2012 2:04 AM (in response to dgolovin)Hi Denis,
Thanks for your answer. Actually ?1, ?2 is positional parameter and refer to JPA specs (2.0) this is supported. Another things is that (as I saw in hibernate jira: https://hibernate.onjira.com/browse/HHH-7023) HQL ? positional parameter was deprecated.
-
3. Re: How To Use Positional Parameter in HQL Editor
dgolovin Oct 9, 2012 7:14 PM (in response to xsalefter)Thank you for pointing that out (Java EE 6 Tutorial mentions in Input Parameters topic), It should be supported then and it means you found the issue in Hibernate Tools Plug-in. Could you report that in JBoss Tools JIRA?
-
4. Re: How To Use Positional Parameter in HQL Editor
xsalefter Oct 9, 2012 7:34 PM (in response to dgolovin)