Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 63008 invoked from network); 14 Dec 2004 09:16:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Dec 2004 09:16:29 -0000 Received: (qmail 63213 invoked by uid 500); 14 Dec 2004 09:16:28 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 63192 invoked by uid 500); 14 Dec 2004 09:16:27 -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 63176 invoked by uid 99); 14 Dec 2004 09:16:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.seitenbau.net (HELO mail.seitenbau.net) (194.175.229.106) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Dec 2004 01:16:23 -0800 Received: from [195.127.188.18] (helo=www.seitenbau.net) by mail.seitenbau.net with esmtp (Exim 4.30) id 1Ce8n5-0004NN-Gr for torque-dev@db.apache.org; Tue, 14 Dec 2004 10:16:19 +0100 In-Reply-To: Subject: Re: provide a central place for parsing column names in SQLBuilder To: "Apache Torque Developers List" X-Mailer: Lotus Notes Release 6.0 September 26, 2002 Message-ID: From: Thomas Fischer Date: Tue, 14 Dec 2004 10:16:19 +0100 X-MIMETrack: Serialize by Router on www/seitenbau(Release 6.5.1|January 21, 2004) at 14.12.2004 10:16:19 AM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Scan-Signature: f96144fd1d8a1f662130e47f760bab98 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, "Henning P. Schmiedehausen" schrieb am 14.12.2004 09:55:30: > Thomas Fischer writes: > > >This is not the problem and can be prevented by using the javaName > >attribute in the table description in xxx-schema.xml. There are some > >problems in the generation of sql, the generator tries to generate > >constaints which are applied on columns like schemaname.columnname and not > >schemaname.tablename.columnname. It seems that someone looks for dots > >there.... > > JavaName is intended to describe the _JAVA_ name of the table. Not the > unqualified SQL table name. This can be very different from the > tableName. If the JavaName gets polluted by the Schema, then the > javaName generation is buggy/needs Schema support upgrade. > I do not see this occurring, no hint that anything goes wrong there. > A table element of the schema has different elements: > > javaName e.g. fooTable > tableName e.g. FOO_TABLE > fullTableName e.g. MY_SCHEMA.FOO_TABLE > > If we need schema support in the Java packages, we might add a switch > (torque.useDBSchemaAsPackage = true ? =:-) ) Does the fullTableName already exist in the generator ? I currently see no point in it, everything can be done using the javaname/tablename disticntion, just that the tablename is a fully qualified tablename. The database should not complain about using schemaname.tablename instead of tablename (at least not in Oracle). Using the schemaname as package name is problematic because all the imports would have to be managed. Changing the package of a class is purely aesthetic in my opinion and is not very high on my personal priority list. > > Regards > Henning > > -- > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH > hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/ > > RedHat Certified Engineer -- Jakarta Turbine Development -- hero for hire > Linux, Java, perl, Solaris -- Consulting, Training, Development > > What is more important to you... > [ ] Product Security > or [ ] Quality of Sales and Marketing Support > -- actual question from a Microsoft customer survey > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org > For additional commands, e-mail: torque-dev-help@db.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org