Hi.

> Forgive me if this is a naive question but I've search the web and 
> haven't found an obvious answer.
> 
> I'd like to find a tool that generates Java source files, SQL schema 
> files, and O/R mapping files from the same XSD file.  The input XSD file 
> (over which I have no control) defines the format of XML messages.  I 
> know that JAXB, XMLbeans, etc. can create the Java source files from 
> this type of XSD file.  However, I haven't been able to identify a tools 
> that creates the SQL schema and O/R mapping files from the same type of 
> XSD file.  The closest tool I've found is Hydrate that will generate all 
> three types of output files but it does this from a Hydrate model XSD 
> file, not from the type of XSD file that JAXB or XMLbeans would take as 
> input.
> 
> Of course, it would be perfect if this tool could be integrated into a 
> Maven 2 build process.

This is exactly what Hyperjaxb2 does. Take a look at:

https://hyperjaxb2.dev.java.net/

Hyperjaxb2 is a JAXB add-on that generates Hibernate mapping and configuration 
for JAXB classes. That is, you get *.hbm.xml and hibernate.cfg.xml.

Hyperjaxb2 includes a Maven2 plugin.

You don't need any special type of XSD, just normal schemas. Hyperjaxb2 will 
map everything for you. And of course you can customize the generated mappings.

Here's a sample application:

https://hyperjaxb2.dev.java.net/nonav/repository/org/jvnet/hyperjaxb2/hyperjaxb2-sample/0.6.0/hyperjaxb2-sample-0.6.0-src.zip

Bye.
/lexi
-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to