Ronald,
have a look at ...
http://castor.codehaus.org/javadoc/org/exolab/castor/tools/MappingTool.html
to get an idea what this tool offers in terms of API.
Regards
Werner
PS If that's not sufficient to get you going, please don't hesitate to
come back with questions.
Ronald R. DiFrango wrote:
Werner,
Thanks for that...the only piece I seem to be misssing is where is this
Mapping tool you speak of to generate the initial mapping files from the
Domain Objects?
Thanks,
Ron
On Feb 13, 2008 3:23 AM, Werner Guttmann <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi Ronald,
there's no tool that helps you to create the desired results in one go.
But you could
a) create Java domain classes (without descriptors) from your XML schema
using the XML code generator
b) use the mapping tool to create a mapping file from the Java classes
c) enrich this mapping file with information specific to JDO
d) use the DDL generator to create DDL files from the mapping(s).
Regards
Werner
PS A few months ago I was pondering the idea of allowing folks to use
<xsd:appInfo> elements to define persistence related information within
an XML schema, so that JDO descriptors could be generated directly.
Anybody wishing to join me on this idea, feel free .. ;-).
Ronald R. DiFrango wrote:
> All,
>
> I would like to take my XML Schema and convert it into JDO mappings.
> Also, I would like turn this into DDL.
>
> Is there a tool out there to do this?
>
> --
> Ron DiFrango
> Blog (www.captech-soa.blogspot.com
<http://www.captech-soa.blogspot.com>
<http://www.captech-soa.blogspot.com>)
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Ron DiFrango
Blog (www.captech-soa.blogspot.com <http://www.captech-soa.blogspot.com>)
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email