Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] JPA grammar question

I'd like to confirm that Hibernate (still, incomprehensibly, after all these years, etc. etc.) violates the JPA grammar in this case, and that EclipseLink's behavior is correct.

Consider a named query like this:

SELECT o FROM SomeEntity o WHERE o.id IN :someList

First: http://old.nabble.com/jpql-named-parameter-list-as-input-does-not-work-td25678654.html seems to indicate that the JPQL grammar mandates no parentheses around :someList.  I am operating under the assumption that this is true (no JPQL grammar reference handy).

If that's true, then the above is a valid query, yes?

And EclipseLink 2.2.0 should have no problem with it, right, assuming that you set a List into that named parameter slot?

Thanks,
Laird

Back to the top