Hi Arun,

I don't know a specific tool to directly create mappings, but there are two
utilities I would like to point you at:

middlegen: http://boss.bekk.no/boss/middlegen.jsp
Creates mapping-xdoclet-information, i.e. javadoc tags to describe the
mapping of columns, relations etc. primarily to create EJB 2.0 CMR
deployment-descriptors.
and
XDoclet: http://sourceforge.net/projects/xdoclet
Which creates the deployment descriptors from that doclet-code.

The reason why this is interesting for castor is, that XDoclet supports a
castor-tag to create the xml-mapping-descriptors for castor as well. The
missing link inbetween is, that middlegen does not directly create the
castor-tags. You can start using middlegen to create the ejb-tags, and
manually add the castor tags (because the information provided is
sufficient), maybe it is easy to transliterate using a script.

Cheers, Mika


-----Ursprungliche Nachricht-----
Von: Bruce Snyder [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 17. Juli 2002 16:58
An: [EMAIL PROTECTED]
Betreff: Re: [castor-dev] Creating MAPPING.XML file from database
structure


This one time, at band camp, Arun Sudhakaran said:

AS>
AS>        Is there anyway i can create a mapping file from the db structure
automatically. Likewise is there any way to create the Object class files
from the mapping file or from the db structure.
AS>
AS>Any help regarding this matter would be appreciated.

Arun,

There are no tools that will create the mapping descriptor from the
database schema. Likewise, there are no tools to create Java objects
from the mapping descriptor or the database schema. However, the Castor
XML Source Generator (http://www.castor.org/sourcegen.html) will create
Java objects from an XML Schema Document.

Bruce
-- 
perl -e 'print
unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

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

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

Reply via email to