Indexed element access in JPQL
Posted
by Timo Westkämper
on Stack Overflow
See other posts from Stack Overflow
or by Timo Westkämper
Published on 2010-05-27T20:56:16Z
Indexed on
2010/05/28
0:51 UTC
Read the original article
Hit count: 309
Is it possible to do indexed element access in JPQL like in HQL :
select o from Order o where o.items[0].id = 1234
I couldn't find something related in the JPA 2 specs,
I am targeting EclipseLink JPA here, so if you come up with an EclipseLink solution, that's ok as well, although a JPQL standard solution is preferred.
© Stack Overflow or respective owner