db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sheng Guo <sh...@in.tum.de>
Subject Re: Creating XXX-schema.xml from existing DB
Date Wed, 03 Mar 2004 08:06:36 GMT

I have a similar problem. I wrote a sql file, and used it to generate 
the tables in the PostgreSQL database. And now I want to generate a 
project-schema.xml with the exiting .sql file, but it failed.

In the build-torque.xml  I have the following code:

    description="==> creates an xml schema from an sql schema">


and I tried   ant -f build-torque.xml sql2xml , but there was alway a 

C:\SEP\gogol\components\cnt>ant -f build-torque.xml sql2xml
Buildfile: build-torque.xml

[torque-sql-transform] Parsing SQL Schema
[torque-sql-transform] log4j:ERROR Could not find value for key 
[torque-sql-transform] log4j:ERROR Could not instantiate appender named 

After that the programm stopped. What is wrong here?



>And good day to you. :)
>"- jdbc
>generates an XML schema of an existing database from JDBC metadata"
>--    From: http://db.apache.org/torque/generator/index.html
>It's relatively easy to do but not very documented. A sample usage is
>show in:
>This question really belongs in the torque-user mailing list but 
>hopefully the info above is sufficient to get you going.
>On Tue, 2004-03-02 at 11:19, Juan Uys wrote:
>>Good day,
>>I would like to know if one can create an XXX-schema.xml from an existing DB?
>>I couldn't find anything - I just scanned all the docs.
>>I would like to help develop such a feature. It would use the standard JDBC API (ResultSetMetaData,
>>The utility would create the bulk of the XXX-schema.xml file, and surely the user
must go afterwards and edit the necessary bits.
>>Let me know if you have any ideas/guidelines.
>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

View raw message