Herv� Guidetti wrote:
> 
> Thanks for these answers.
> 
> For point 2. Here are the details (example):
> 
> I want to create a new project - Management of products and products
> details. No I have to write manually to classes Product.java and
> ProdDetail.java implementing Persistence and all the getter and setter.
> I find that very boring.
> I 'd like to find a tool to *generate* all my Persistent classes
> automatically.
> For example I write a file like that :
> <application>
>     <object name="product">
>         <field name="id" type="integer"/>
>         <field name="desc" type="char" size="50"/>
>     </object>
> 
>      <object name="prod_detail">
>         <field name="id" type="integer"/>
>         <field name="desc" type="char" size="50"/>
>     </object>
> </application>
> 
> For this kind of file I can generate Persistent Object and SQL file to
> create the DB.
> 

I'm beginning to see what you mean, but I'm still unclear as to how
you're using the reference to persistent objects. 

Castor includes a source generator that will create Java objects for you
from an XSD, but it will not create the DDL for the database. This is
probably not what you want though. 
--
Bruce Snyder
Software Engineer
I W I T N E S S, Inc.

Mitigating the regulatory and legal risks 
associated with doing business digitally.

+1 303-545-9000 x126  Office
+1 303-545-9155       Fax
2995 Wilderness Pl., Suite 2N
Boulder, CO 80301 USA
http://www.iwitness.com

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to