Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 25362 invoked from network); 11 Jun 2007 18:51:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2007 18:51:57 -0000 Received: (qmail 93868 invoked by uid 500); 11 Jun 2007 18:51:57 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 93826 invoked by uid 500); 11 Jun 2007 18:51:57 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 93796 invoked by uid 99); 11 Jun 2007 18:51:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 11:51:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [216.82.249.147] (HELO mail29.messagelabs.com) (216.82.249.147) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 11 Jun 2007 11:51:51 -0700 X-VirusChecked: Checked X-Env-Sender: Neelima.Yadla@CBC-Companies.com X-Msg-Ref: server-21.tower-29.messagelabs.com!1181587874!34827552!2 X-StarScan-Version: 5.5.12.11; banners=-,-,- X-Originating-IP: [68.22.157.140] Received: (qmail 17164 invoked from network); 11 Jun 2007 18:51:29 -0000 Received: from unknown (HELO securemail.cbc-companies.com) (68.22.157.140) by server-21.tower-29.messagelabs.com with SMTP; 11 Jun 2007 18:51:29 -0000 Received: from [172.16.91.59] by securemail.cbc-companies.com with ESMTP (Tumbleweed Email Firewall SMTP Relay (Email Firewall v6.3.1)); Mon, 11 Jun 2007 14:53:13 -0400 X-Server-Uuid: BACAE2E7-99CF-41E2-B436-EF2713BA3F86 Content-Class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.0.6619.12 Subject: RE: doUpdate() problem in torque 3.2 Date: Mon, 11 Jun 2007 14:51:20 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-topic: doUpdate() problem in torque 3.2 Thread-Index: AceoT/73feNTPzL7RKqPQT4sPhE6BAECSt0g References: From: "Neelima Yadla" To: "Apache Torque Users List" X-WSS-ID: 6A7345932TK1908227-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I figured out the problem where it is happening. I have a question with village, Is village is not support for editing primary key fields??? Oracle allows me to update a primary key field in a table but when I try to update through my web screen torque (basically village) returns me the error that it is a key field. How to provide a user to change the primary key field also??? -----Original Message----- From: Neelima Yadla=20 Sent: Wednesday, June 06, 2007 11:33 AM To: Apache Torque Users List Subject: doUpdate() problem in torque 3.2 I have upgraded torque from 3.0 to 3.2 and also tdk from 2.2 to 2.3, the doUpdate() is always giving me error " ... is a key value cannot be updated". =20 ValidOptionPeer.doUpdate(selectCriteria, criteria); =20 Where my criteria is as follows, =20 =20 if ((validOptionName !=3D null) && (validOptionName.length() > 0)) criteria.add(ValidOptionPeer.OPTION_NAME, (Object) validOptionName, Criteria.LIKE); if ((validOptionDescription !=3D null) && (validOptionDescription.length() > 0)) criteria.add(ValidOptionPeer.OPTION_DESCRIPTION, (Object) validOptionDescription, Criteria.LIKE); =20 OPTION_NAME is the primary key in my table. As per torque document, we have to give only set values in criteria but I didn't get how the above is to be work in torque 3.0. If I remove the Option_name from criteria.add it works fine but not getting any error message if user tries to modify the option_name. =20 Also, how to handle multiple primary key fields in doUpdate(selectCriteria, criteria); =20 I appreciate any help. =20 Thanks, =20 Neelima =20 =20 =20 Neelima Yadla Programmer/Analyst - Score Group Office : (614) 273-4680 =20 --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org