openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajay Aggarwal" <>
Subject update query syntax for embedded class field
Date Wed, 05 Dec 2007 21:43:05 GMT
I am trying to update a field of the embedded class using query, but its
not working. In the following code, 'registration' is an embedded class
field inside 'User' and 'authenticated' is a boolean field inside this
embedded class.


Query q = em.createQuery("UPDATE User s SET s.registration.authenticated
= :auth");

q.setParameter("auth", false);


I am getting following error. What is the correct syntax for such a


openjpa.persistence.ArgumentException: An error occurred while parsing
the query filter 'UPDATE User s SET s.registration.authenticated =
:auth'. Error message: <4|false|0.9.7>
org.apache.openjpa.kernel.jpql.ParseException: Encountered "." at
character 33, but expected: ["="].




  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message