-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
id(this) not accepted in SELECT and WHERE clauses #2189
Comments
I could recreate the issue. Below is the Prime entity we have by referencing the entity present in Jakarta Data.
Here is the code where we executed the JPQL query:
This resulted in the following exception stack, which is the same as described in the issue:
|
Sorry but mentioned query
|
@rfelcman Could you please provide clarification on whether this query is indeed invalid? |
Do You mean that two aliases |
EclipseLink is not accepting the id(this) operation, which is new in Jakarta Persistence 3.2, when it is placed within a JPQL SELECT or WHERE clause. (It's possible other clauses might not work either -- this query only tried SELECT and WHERE),
SELECT ID(THIS) FROM Prime o WHERE (o.name = :numberName OR :numeral=o.romanNumeral OR o.hex =:hex OR ID(THIS)=:num) ORDER BY o.numberId
Here is the error:
The text was updated successfully, but these errors were encountered: