Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 49590 invoked from network); 24 Feb 2005 16:31:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Feb 2005 16:31:15 -0000 Received: (qmail 47475 invoked by uid 500); 24 Feb 2005 16:31:03 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 47413 invoked by uid 500); 24 Feb 2005 16:31:03 -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 47349 invoked by uid 99); 24 Feb 2005 16:31:03 -0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=DNS_FROM_RFC_POST,FORGED_MUA_OUTLOOK,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of eff4eye@hotmail.com designates 64.4.35.184 as permitted sender) Received: from bay12-dav10.bay12.hotmail.com (HELO hotmail.com) (64.4.35.184) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 24 Feb 2005 08:31:02 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 24 Feb 2005 08:31:00 -0800 Message-ID: Received: from 24.88.244.143 by BAY12-DAV10.phx.gbl with DAV; Thu, 24 Feb 2005 16:30:17 +0000 X-Originating-IP: [24.88.244.143] X-Originating-Email: [eff4eye@hotmail.com] X-Sender: eff4eye@hotmail.com From: "Brandon" To: "Apache Torque Users List" References: <421DE3F1.40100@numerixtechnology.de> <421DECA6.5000106@reea.net> <421DFD19.3020209@numerixtechnology.de> Subject: torque:jdbc isn't right Date: Thu, 24 Feb 2005 11:30:14 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-OriginalArrivalTime: 24 Feb 2005 16:31:00.0170 (UTC) FILETIME=[3976EAA0:01C51A8E] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm having a problem using the torque:jdbc call. It doesn't seem to be treating the database as using the native idMethod even though I defined the DB that way, and used Torque to create and populate the DB. But it doesn't seem to be pulling the very information that it put into the database. Surprisingly enough it does create the XML files properly, and everything seems to be working properly, but it creates a class called BaseIdTablePeer. The interesting thing is that it creates a duplicate name for a String in the file. Here's what the generated code looks like: /** the default database name for this class */ public static final String DATABASE_NAME = "default"; /** the table name for this class */ public static final String TABLE_NAME = "id_table"; /** * @return the map builder for this peer * @throws TorqueException Any exceptions caught during processing will be * rethrown wrapped into a TorqueException */ public static MapBuilder getMapBuilder() throws TorqueException { return getMapBuilder(IdTableMapBuilder.CLASS_NAME); } /** the column name for the ID_TABLE_ID field */ public static final String ID_TABLE_ID; /** the column name for the TABLE_NAME field */ public static final String TABLE_NAME; Notice that the string TABLE_NAME is defined twice. I am not sure why it is generating things like this. It also indicates that it's using the id_table stuff rather than the native stuff I defined when I created the DB for the idMethod. Anyone have any thoughts? -Brandon --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org