Hey all,
Castor looks outstanding and I really want to use it
on a project I've inherited. The project has a fairly
small Oracle database (about 18 tables), and I'd like
to automatically generate the Java data classes and
the mapping file from this database (using either the
DDL or the live DB itself).
This seems like it would be a common development task,
but for the life of me I can't find a way to do it.
I'm looking at two approaches:
1. find a tool that can convert the database structure
to a .xsd, then use Castor's SourceGen to go from .xsd
to Java. I thought this would be a no-brainer and
that there would be tools galore to do this, but I
haven't found one yet after a few hours of searching.
Even the Oracle XDK can't seem to do this.
2. find a tool that can generate Java directly from
the database and try to use these Java classes with
Castor (by providing my own mapping file). Oracle has
tools to do this, for instance. There's also stuff
from the EJB world that might suffice. I'm a little
scared of this because I'm not sure how hard it is to
map non-Castor-generated objects to Castor JDO.
Any thoughts? Apologies if this is somewhere in the
docs or the FAQ.
tia,
Mike.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev