Just thinking to myself here, you might need to use the -nodesc option also when using the -gen-mapping option.

--Keith

Keith Visco wrote:
There is an "experimental" option for the source generator that you could try:

java org.exolab.castor.builder.SourceGenerator -i my.xsd -gen-mapping mapping.xml

It won't add the DB table mappings, but it should provide something you can work from.

--Keith


Werner Guttmann wrote:

Not to my knowledge, at least not through teh source-generator. You
could use the MappingTool as found within Castor, though, to have a
mapping file generated from the generated Java classes, and use this as
a staring point.

I hope this helps
Werner


-----Original Message-----
From: Stefan Lober [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 09. November 2005 15:12
To: [email protected]
Subject: [castor-user] [JDO] Creating O/R-mapping with the SourceGenerator

Hello,
currently, I am using Castor to generate my sources from an XML Schema. This is done by org.exolab.builder.SourceGenerator. As I am planning to persist the objects corresponding to the generated classes, I would like to know if it is possible to have the Database mapping generated along with the classes.


___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------





-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------




-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------




-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to