db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bogdan Vatkov" <bvat...@globaltech-bg.com>
Subject Re: torque-gen multiple db ?
Date Fri, 19 Mar 2004 14:15:40 GMT
Yep, but you have to make some modifications to the templates
and of course to add some config to your build.properties file

like this

torque.targetPackageRoot = org.gt
torque.targetPackageCommons = ${torque.targetPackageRoot}.Commons
torque.targetPackageWeblication = ${torque.targetPackageRoot}.Weblication
torque.targetPackageWeblicationCustomize =
${torque.targetPackageWeblication}.Customize
torque.targetPackageLogic =
${torque.targetPackageRoot}.ServicesImplemented.TemplatedDBCoverage
torque.targetPackageJavaBeans = ${torque.targetPackageLogic}.WebComponents
torque.targetPackageApplication = ${torque.targetPackageRoot}.Application
torque.targetPackage = ${torque.targetPackageRoot}.DataObjects

you will have to modify the templates:
....torque-gen-3.1\templates\om\*.vm

not all of them of course ..

regards,
bogdan

----- Original Message -----
From: "Alexandru Dovlecel" <alexandru.dovlecel@siemens.com>
To: "'Apache Torque Users List'" <torque-user@db.apache.org>
Sent: Friday, March 19, 2004 4:02 PM
Subject: RE: torque-gen multiple db ?


> Q: How can I generate files in separate packages? Is it possible? E.g. the
> classes dealing with users in the package my.app.users and the classes
> dealing with the shoping cart in package my.app.shopping ?
>
> Pls tell me if possible or not.
>
> 10q
> Alex
>
> > -----Original Message-----
> > From: Dave Newton [mailto:dave@solaraccess.com]
> > Sent: Friday, March 19, 2004 3:49 PM
> > To: Apache Torque Users List
> > Subject: Re: torque-gen multiple db ?
> >
> >
> > On Fri, 2004-03-19 at 03:58, Bogdan Vatkov wrote:
> > > Of course i have made some corrections in the torque runtime &
> > > torque-generator to successfully support the . (dot)
> > > inside tables names. but now i want to separate the
> > definition of each
> > > schema and place it in a separate file (xml file)
> >
> > Since it's all running under ant anyway, why not just concatenate the
> > multiple-xml files into one xml file and then run the torque
> > generation
> > process normally?
> >
> > Dave
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> > For additional commands, e-mail: torque-user-help@db.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message