Hibernate version: 3.0
We migrate our application from Hibenrnate 2.1.8 to 3.0 and we have a query with this form...
select A
from ItemA A, elements(A.childrens) B
where A.code = ? and B.reference = ?
order by index(B)
With this hibernate say
unexpected token: elements near line 1, column 70
Then, i read reference documentation and i found
Note that these constructs - size, elements, indices, minindex, maxindex, minelement, maxelement - may only be used in the where clause in Hibernate3.
My question is, how migrate my query ?, with join ?
regards
epsino
|