Hello,
I am looking for a solution to automatize our project
development using Castor. As this has also been an
issue in recent threads, I am now posting my ideas and
problems.
My input is DTD file, which is converted to an XSD. I
then use the SourceGenerator to have the source files
generated from this XSD. The next step should be
generating the O/R mapping files for Castor. My idea
is that this could be done automatically from the
information in the XSD. Is there any use in trying to
modify the SourceGenerator code to do this?
So far, I have been able add code for generating
mappings for classes that use only basic Java types as
members. This is done at the code location where the
flags for "-gen-mapping" and "-nodesc" are queried. I
use the MappingRoot object to get the necessary
information.
There are two main problems:
-My generated classes don't have ids.
-In the ClassMapping objects, I don't see any
information about the cardinality of a relation (1:1,
1:N or M:N).

The use of a toolkit like XDocLet would not work as
there is no information in the generated classes which
can be used as input for doclet-tools.

Any suggestions would be appreciated!
Thanks,
Stefan


        

        
                
___________________________________________________________ 
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]
-------------------------------------------------

Reply via email to