db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henning P. Schmiedehausen" <...@intermeta.de>
Subject Re: provide a central place for parsing column names in SQLBuilder
Date Tue, 14 Dec 2004 08:55:30 GMT
Thomas Fischer <Fischer@seitenbau.net> 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

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.

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 ? =:-) )


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

View raw message