Return-Path: Delivered-To: apmail-openjpa-users-archive@locus.apache.org Received: (qmail 29394 invoked from network); 5 Dec 2007 21:43:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2007 21:43:39 -0000 Received: (qmail 54839 invoked by uid 500); 5 Dec 2007 21:43:28 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 54825 invoked by uid 500); 5 Dec 2007 21:43:28 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 54816 invoked by uid 99); 5 Dec 2007 21:43:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 13:43:28 -0800 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [63.110.43.12] (HELO mail.covergence.com) (63.110.43.12) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 21:43:07 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C83787.D229D55D" Subject: update query syntax for embedded class field Date: Wed, 5 Dec 2007 16:43:05 -0500 Message-ID: <0D1719326D64BD4E9F92A0C12023767804421A56@eserv.covergence.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: update query syntax for embedded class field Thread-Index: Acg3h9FgvmgOzAeIRTWh8nnhO9CT5A== From: "Ajay Aggarwal" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C83787.D229D55D Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable 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. =20 Query q =3D em.createQuery("UPDATE User s SET = s.registration.authenticated =3D :auth"); q.setParameter("auth", false); =20 I am getting following error. What is the correct syntax for such a query? =20 openjpa.persistence.ArgumentException: An error occurred while parsing the query filter 'UPDATE User s SET s.registration.authenticated =3D :auth'. Error message: <4|false|0.9.7> org.apache.openjpa.kernel.jpql.ParseException: Encountered "." at character 33, but expected: ["=3D"]. =20 Thanks. =20 ------_=_NextPart_001_01C83787.D229D55D--