db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wang, Kevin" <KW...@TMRS.org>
Subject RE: Using Torque to generate value class/JavaBeans
Date Wed, 01 Oct 2003 19:57:02 GMT
Tom,

MiddleGen looks pretty promising. JDOs created by MiddleGen are very close
to (more than) what we need. I will give it a try.

Thanks,
Kevin

-----Original Message-----
From: Tom Marsh [mailto:marsht1@nitesco.com]
Sent: Wednesday, October 01, 2003 12:32 PM
To: Apache Torque Users List; 'torque-user@db.apache.org'
Subject: Re: Using Torque to generate value class/JavaBeans


Kevin,

Take a look at Middlegen,

http://boss.bekk.no/boss/middlegen/index.html

Velocity
http://jakarta.apache.org/velocity/index.html

xdoclet
http://xdoclet.sourceforge.net/index.html

Tom

> Our project uses CMP for persistance with WebSphere Application 
Server. It
> also uses value classes (JavaBean) to assist the process. There is
> one-to-one mapping between CMPs and db tables/views, and for the most 
part
> one-to-one match between CMPs and value classes. Since value classes 
are
> just plan JavaBeans with getter/setter for each table field. It would 
be
> wise to generate them from tables/views and vise versa.
> 
> Can you achieve this with Torque? Without deep understanding of 
Torque, I
> think it can be done by using a combination of Torque and Castor, plus
> additional value class generator (VCGenerator , to be created). The
> schema.xml generated by Torque can be fed to VCGenerator to create 
the value
> class. Castor can be used to generate the helper classes to assist the
> VCGenerator. For Castor to work in this case, an xml version of the 
Torque
> dtd (database.dtd) would need to be converted.
> 
> Is there any other tool out there that will do such simple task?
> 
> Thanks,
> Kevin
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 
> 
> 

-- 
NeoMail - Webmail that doesn't suck... as much.
http://www.neomail.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