> -----Original Message-----
> From: Wiktor Wandachowicz [mailto:[EMAIL PROTECTED]
> Sent: domingo, 13 de Novembro de 2005 9:40
> To: [email protected]
> Subject: Re: [castor-dev] Doclet for generating DDL and XML mappings
> 
> Diogo Quintela (EF) wrote:
> 
> >Check xdoclet 1 and/or xdoclet 2.
> >They are more maintained I suppose.
> >
> >Xdoclet 1
> >http://xdoclet.sourceforge.net/xdoclet/tags/exolab-tags.html
> >http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/ejb/EjbDocletT
> ask
> >.html
> >
> >Xdoclet 2
> >http://xdoclet.codehaus.org/Castor+plugin
> >
> >Regards
> >
> >
> Well, but I haven't found ANY documentation of how SQL scripts of the
> database
> schema needed for mapping should/could be generated by those doclets.

AFAIK these doclet only support generation of mapping.xml (at least xdoclet2
castor plugin I am sure, as I was the one who contributed it).

Regarding the SQL schema generation; I never used castor-jdo feature, so I
don't really known if there is such a generator - the guys here could
enlighten us on this. If not, xdoclet2 is available for such a contribution
(as xdoclet1 is I assume).

> I looked on the XDoclet site and only have found that indeed Castor tags
> are taken
> under consideration as an <ejbdoclet> subtask. But I don't need EJB's.

Indeed it's quite misleading, but the ejbdoclet subtask's castor mapping is
not really/strictly Ejb related - It's a mapping file generator - plain an
simple.
> 
> I also looked all the way through original JDO documentation on the
> codehaus site,
> but I haven't found any mention of how to create SQL script for a
> database. There is
> however a notice, that in the testing framework there supposed to be an
> oracle.sql file
> somewhere in the tests. And I want to use hsqldb, not Oracle.
> Also, in the src/examples/jdo there is a create.sql file for MySQL. And
> I want to use
> hsqldb in conjunction with my own classes, stored in the database with
> correct schema.
> And how to create that schema is beyond me...

Again, the guys here could help you on this. I suppose that it should be a
straight java-field to table-field (handmade?) mapping..

> 
> I just want to use JDO in my client application, backed by a hsqldb
> database.
> No more, no less. So I need an mapping.xml and a database schema.
> While after reading the docs I think that the mapping.xml can be
> generated somehow.
> But I'm completely unable to see any hint if a corresponding SQL
> database schema
> could also be generated (at all).
> 
>  From what I've gathered over two last days I find that my goal is
> virtually impossible
> to achieve based on the current Castor docs. Please recommend me any
> furher reading.
> A step-by-step guide would be best, as I can't really find anything like
> that.
> I don't really want to drop Castor from my project, because it looks
> really promising
> and I've already invested a lot of my time searching for the information
> about using it.
> 
> Regards,
> Wiktor Wandachowicz
> 
> -------------------------------------------------
> If you wish to unsubscribe from this list, please
> send an empty message to the following address:
> 
> [EMAIL PROTECTED]
> -------------------------------------------------

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to