Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 86581 invoked from network); 24 Mar 2004 17:25:46 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Mar 2004 17:25:46 -0000 Received: (qmail 33953 invoked by uid 500); 24 Mar 2004 17:22:16 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 33937 invoked by uid 500); 24 Mar 2004 17:22:15 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 33917 invoked from network); 24 Mar 2004 17:22:15 -0000 Received: from unknown (HELO corfu.local.net) (24.10.208.71) by daedalus.apache.org with SMTP; 24 Mar 2004 17:22:15 -0000 Received: by corfu.local.net (Postfix, from userid 501) id 243C812D62; Wed, 24 Mar 2004 10:23:04 -0700 (MST) Received: from localhost (localhost [127.0.0.1]) by corfu.local.net (Postfix) with ESMTP id C38AA12D60 for ; Wed, 24 Mar 2004 10:23:04 -0700 (MST) Date: Wed, 24 Mar 2004 10:23:04 -0700 (MST) From: Gary Shea X-X-Sender: shea@corfu.local.net To: Apache Torque Users List Subject: Re: torque delete In-Reply-To: <4061BF05.1040409@in.tum.de> Message-ID: References: <4061BF05.1040409@in.tum.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N My experience is you get that error if the table has no primary key or if torque's schema doesn't include the primary key. Only the per-column primaryKey= attribute will help; the index and unique sub-elements of have no effect on this problem. If you have a multi-part primary key, you can put a primaryKey= attribute in each of the elements. Hope that helps... Gary On Wed, 24 Mar 2004, at 18:01 [+0100], Sheng Guo (sheng@in.tum.de) wrote: > Hi, > > I am a new user of Torque, and I tried to delete some records from a > relation table ( which holds the n:m relation of the other two tables), > but it failed, > > the exception said: > > org.apache.torque.TorqueException: You must specify KeyDef attributes > for this TableDataSet in order to delete a Record. > > what does it mean, and how can I specify KeyDef attributes? > > Thanks > > Guo --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org