Open njr-11 opened 5 months ago
See EclipseLink Issue : 2184
@KyleAure - What is the positive scenario with Entity Identification Variable?
I tried the following queries, but not working:
1) UPDATE Person p SET p.firstName=:newFirstName WHERE p.ssn_id=:ssn
2) UPDATE Person p SET p.firstName=:newFirstName WHERE id(p)=:ssn
UPDATE Person p SET p.firstName=:newFirstName WHERE p.ssn_id=:ssn
The JPQL UPDATE query
UPDATE Person SET firstName=:newFirstName WHERE id(this)=:ssn
which optionally omits the entity identification variable (for consistency with JDQL) gets NullPointerException out of EclipseLink.