[hibernate-dev] Some insight about HHH-12101 / remove HQL-style positional parameters
lalmeras at gmail.com
Fri Feb 2 12:00:54 EST 2018
Testing Hibernate 9.3.0.Beta2, I run into this issue:
Cannot define positional and named parameterSpecs : select
where queuedTaskHolder.status in (:x1_0, :x1_1, :x1_2, :x1_3) and
queuedTaskHolder.queueId = ?2
Hibernate complains that query contains both named and positional
parameters (note that this query use to work on Hibernate 5.2.x).
This new behavior is linked to:
* this commit:
* this issue: https://hibernate.atlassian.net/browse/HHH-12116
* and this parent issue: https://hibernate.atlassian.net/browse/HHH-12101
I also find that you already talk about this behavior on this same
I think that allowing this behavior was not a good idea, so I don't have
any hope that you consider this as a bug. But I think it should be
noticed in the release note
in this ticket (https://hibernate.atlassian.net/browse/HHH-12101) as a
On my side, I run in this issue because I use QueryDSL-jpa, and the
query I give as an example is buggy because it mixes a IN statement
(named parameter) dans an EQUAL statement (positional parameter).
Is there anyone following both Hibernate and QueryDSL here that is
already aware or working on this issue ?
More information about the hibernate-dev