We're using a customized set of the templates that come with torque-3.0, so
I cant tell you what's changed in those since, but I downloaded the
"db-torque" cvs project and see that they've split off the "generator"
portion (the part we use, which generates schemas and sql). Theres a small
mention of it on the torque home page.

 I had pretty good success using the generator to create ddl code to create
a postgres equivalent to our normally-SQLServer application database. I have
no idea yet how to copy data from one to the other though (especially since
one is at work and one is at home). It did take a little setup time to get
all the required folders and files needed by the app though.

 I copied our xml database schema file to the proper folder, set the
build.properties to say "postgresql", and set the postgres profile to point
to my database, then ran the "sql" target on the build-torque file that
comes from the "conf" subfolder in the torque project. 

 The generated postgres-type sql files, which ended up in "src/sql" were
-almost- right for me :) I had to do a couple search-n-replaces on the sql
because the code to delete old sequences doesnt use quite the correct name
for the sequence. I havent bothered to modify the template, since im not
going to be generating this file very often.

 -dave


-----Original Message-----
From: Brian McCallister [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 7:37 AM
To: OJB Users List
Subject: Torque XML and Java generation


I intended to ask this on the Torque list, but as it is bouncing on 
both db.apache.org and jakarta.apache.org...

Does anyone here know the state of the OJB XML and Java class sources 
from Torque descriptors? The Torque site lists it as "experimental".

Thanks,
Brian


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


+---------------------------------------------------------+ 
This message may contain confidential and/or privileged information.  If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose or take any action based on this message or any
information herein.  If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message.
Thank you for your cooperation.
+---------------------------------------------------------+

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to