Richard Bayet <[EMAIL PROTECTED]> writes:

>Henning P. Schmiedehausen wrote:
>> 
>>>Just out of curiosity : have you tried what happens if one puts
>>>"schemaname.tablename" as tablename into schema.xml ? That might also be
>>>interesting for some people.
>> 
>> 
>> No. Testers welcome.
>> 
>> 
>As for Torque Gen 3.1, this might be a bad idea.
>Because the class and packages names will contain this extra dot character.
>Not very annoying for the packages names : the classes will be tagged as 
>in package 'com.yourproject.schemaname' instead of 'com.yourproject', 
>but the classes will be named like 'schemaname.yourtable';

This is just because, the SQL table name and the table name for the
packages are too closely connected.

IMHO, the story could go like this:

- Add a new attribute "per XML schema" or "per table" called "schema"
  (yes, the name ambiguity sucks); update the DTD

- Add a new method "getFullTableName()" to the table model which returns
  the fully qualified "schema.table" if a schema is given, return just
  "table" else

- make getTable() only ever return the unqualified table name

- change the templates to use the one or the other as fitting

==> Schema support.

[... long procedure deleted ...]

Wow, I wonder how long it took you. Out of curiosity: The generator is
quite straightforward; IMHO it takes about a day with a debugger to
understand how it works. How long did it take you to implement this
procedure and would a generator change not have been easier?

        Regards
                Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
[EMAIL PROTECTED]        +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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to