Stefan, As always, we would of course be absolutely thrilled to see any kind of contribution from you and/or somebody else .. ;-)
Werner wg> -----Original Message----- wg> From: Stefan Lober [mailto:[EMAIL PROTECTED] wg> Sent: Thursday, November 17, 2005 4:00 PM wg> To: [email protected] wg> Subject: RE: RE: [castor-dev] [JDO] Modifying wg> SourceGenerator to have source and O/R mapping generated at wg> the same time wg> wg> Werner, wg> wg> I had had a look at the MappingTool, but as I already used wg> the SourceGenerator, my idea was, that adapting it would be wg> the right way for me to go. wg> A new look into the MappingTool mechanisms showed me, that wg> it will be a lot easier to work with this tool and change wg> it if I need to. Thanks for the hint. wg> wg> Regards wg> Stefan wg> wg> --- Werner Guttmann <[EMAIL PROTECTED]> wg> schrieb: wg> > Stefan, wg> > wg> > Have you ever had a look at the MappingTool wg> > (src/main/org/exolab/castor/tools/MappingTool) that uses standard wg> > introspection to generate a mapping file from a given set wg> of classes ? wg> > As far as I know, it creates a Castor XML-specific wg> mapping file only, wg> > but I think it should not be too hard to add code that wg> generated the wg> > <sql> elements for the classes given. wg> > wg> > In other words, why re-invent the wheel when the wg> MappingTool already wg> > offers funtionality that you require, but is not feature wg> complete yet. wg> > wg> > Regards wg> > Werner wg> > wg> > wg> -----Original Message----- wg> > wg> From: Stefan Lober wg> > [mailto:[EMAIL PROTECTED] wg> > wg> Sent: Monday, November 14, 2005 8:25 PM wg> > wg> To: [email protected] wg> > wg> Subject: [castor-dev] [JDO] Modifying wg> > SourceGenerator to wg> > wg> have source and O/R mapping generated at the wg> > same time wg> > wg> wg> > wg> Hello, wg> > wg> I am looking for a solution to automatize our wg> > project wg> > wg> development using Castor. As this has also been wg> > an issue in wg> > wg> recent threads, I am now posting my ideas and wg> > problems. wg> > wg> My input is DTD file, which is converted to an wg> > XSD. I then wg> > wg> use the SourceGenerator to have the source files wg> > generated wg> > wg> from this XSD. The next step should be wg> > generating the O/R wg> > wg> mapping files for Castor. My idea is that this wg> > could be wg> > wg> done automatically from the information in the wg> > XSD. Is wg> > wg> there any use in trying to modify the wg> > SourceGenerator code wg> > wg> to do this? wg> > wg> So far, I have been able add code for generating wg> > mappings wg> > wg> for classes that use only basic Java types as wg> > members. This wg> > wg> is done at the code location where the flags for wg> > wg> > wg> "-gen-mapping" and "-nodesc" are queried. I use wg> > the wg> > wg> MappingRoot object to get the necessary wg> > information. wg> > wg> There are two main problems: wg> > wg> -My generated classes don't have ids. wg> > wg> -In the ClassMapping objects, I don't see any wg> > information wg> > wg> about the cardinality of a relation (1:1, 1:N or wg> > M:N). wg> > wg> wg> > wg> The use of a toolkit like XDocLet would not work wg> > as there wg> > wg> is no information in the generated classes which wg> > can be wg> > wg> used as input for doclet-tools. wg> > wg> wg> > wg> Any suggestions would be appreciated! wg> > wg> Thanks, wg> > wg> Stefan wg> > wg> wg> > wg> wg> > wg> wg> > wg> wg> > wg> wg> > wg> wg> > wg> wg> > wg> ___________________________________________________________ wg> > wg> Gesendet von Yahoo! Mail - Jetzt mit 1GB wg> > Speicher kostenlos wg> > wg> - Hier anmelden: http://mail.yahoo.de wg> > wg> wg> > wg> wg> > ------------------------------------------------- wg> > wg> If you wish to unsubscribe from this list, wg> > please send an wg> > wg> empty message to the following address: wg> > wg> wg> > wg> [EMAIL PROTECTED] wg> > wg> wg> > ------------------------------------------------- wg> > wg> wg> > wg> wg> > wg> > ------------------------------------------------- wg> > If you wish to unsubscribe from this list, please send an empty wg> > message to the following address: wg> > wg> > [EMAIL PROTECTED] wg> > ------------------------------------------------- wg> > wg> > wg> wg> wg> wg> wg> wg> wg> ___________________________________________________________ wg> Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos wg> - Hier anmelden: http://mail.yahoo.de wg> wg> ------------------------------------------------- wg> If you wish to unsubscribe from this list, please send an wg> empty message to the following address: wg> wg> [EMAIL PROTECTED] wg> ------------------------------------------------- wg> wg> ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

