Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 41257 invoked from network); 25 Mar 2004 18:45:13 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 25 Mar 2004 18:45:13 -0000 Received: (qmail 50400 invoked by uid 500); 25 Mar 2004 18:45:04 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 50389 invoked by uid 500); 25 Mar 2004 18:45:03 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 33325 invoked from network); 25 Mar 2004 18:38:12 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C41298.52089CB6" Subject: Suggested Change to doDelete() in the Templates Date: Thu, 25 Mar 2004 08:38:09 -1000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Suggested Change to doDelete() in the Templates Thread-Index: AcQSmFH2dfBd/bEwS1yReCwIYOSSww== From: "Mitchell, Charles A CONT J6415," To: X-OriginalArrivalTime: 25 Mar 2004 18:38:09.0486 (UTC) FILETIME=[521826E0:01C41298] 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 ------_=_NextPart_001_01C41298.52089CB6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm using Torque 3.1. The doDelete() method in the Base[TableName]Peer class calls = Base[TableName]Peer instead of [TableName]Peer. Here's the code in BaseTableNamePeer : public static void doDelete( Criteria criteria ) throws TorqueException = { BaseTableNamePeer.doDelete( criteria, (Connection) null ); } It should say : public static void doDelete( Criteria criteria ) throws TorqueException = { TableNamePeer.doDelete( criteria, (Connection) null ); } I overrode doDelete( criteria, conn ) in TableNamePeer. I did not = override doDelete( criteria ). So when I call TableNamePeer.doDelete( = criteria ), it called the BaseTableNamePeer.doDelete( criteria, conn ) = instead of the overridden method. You get the picture. A simple change to the templates fixed it. ------_=_NextPart_001_01C41298.52089CB6--