JPA/JDO entity to XML XSD generator.
Posted
by h2g2java
on Stack Overflow
See other posts from Stack Overflow
or by h2g2java
Published on 2010-06-07T00:30:59Z
Indexed on
2010/06/07
0:42 UTC
Read the original article
Hit count: 565
I am using JDO or JPA on GAE plugin in Eclipse. I am using smartgwt datasource, accepting an xsd.
I would like to be educated how to generate an XSD from my jdo/jpa entity, vice versa.
Is there a tool to do it?
While datanucleas does all its magic enhancing in the Eclipse background, would I be able to somehow operate in a mode that would generate XSDs for me? Can Hibernate operate in an offline mode, to solely help me generate XSDs which I could use in GWT without deploying hibernate with my web-app? Can Hibernate even be capable of generating XSDs from entities, vice versa?
Currently, I am about to write a utility to generate an xsd, given an entity class - but I am hoping I don't have to reinvent the wheel if it already exists.
I am hoping people here could educate me on any available tools to ease my XSD generation.
But btw, I am very wary of anything that uses Maven, because most people (like Spring) who write the Maven scripts and pom don't have the expertise to write it in a way that would spew out messages and verbosity appropriately to make it easy for me to locate model errors.
© Stack Overflow or respective owner