thanks for that Jason, but that is more a build time task i think. what im
realy looking for is generating a table template java object from a xml
schema file using the "torque-om" task, which would be able to access any
table on the database that corresponds to that template. All you would have
to do to access a table would be create a new object with the table name as
a parameter, or to set the table name field of a java object.
maybe texgen can do this. also can texgen or any other ant tasks be executed
from inside a java application?

thanks,

Justin

----- Original Message -----
From: Jason van Zyl <[EMAIL PROTECTED]>
To: Turbine Users List <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 2:33 PM
Subject: Re: torque question - table template


> On Tue, 2002-02-26 at 09:05, Justin Lawler wrote:
> > Hi all,
> > I was wondering if it was possible to create a table template in the
schema file. I have a database a large number of tables all the same except
for the table name. I want to create new tables on the fly, just renaming
the table name but using the java object models to create and access them.
Can this be done?
>
> Here is a full working example of how you might do this using Texen. The
> zip file contains a little build system that will generate tables for
> you. You will probably want to make a context tool in order to retrieve
> your table names but you'll get the idea ;-) If you find this useful
> please document it and contribute it back to the group.
>
> http://www.apache.org/~jvanzyl/tablegen.zip
>
> > thanks,
> > Justin
> --
> jvz.
>
> Jason van Zyl
> [EMAIL PROTECTED]
>
> http://tambora.zenplex.org
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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

Reply via email to