|How to create POJOs with JAXB and JPA Annotations from XSD? [message #1128211]
||Mon, 07 October 2013 09:05
| John Roberts
Registered: October 2013
I have an XSD describing XML data that I need to ingest. I have created Java objects from this XSD using XMLBeans.|
I want to be able to use these same Java objects for both JAXB/REST and for JPA.
Blaise's blog shows using the same objects for both REST and JPA by combining annotations. That makes sense.
My problem is that I'm not creating the Java objects by hand. I'm having XMLBeans create them.
Is there a way to have XMLBeans (or some other package) create Java objects from an XSD with both JPA and JAXB annotations?
Powered by FUDForum
. Page generated in 0.01645 seconds