Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » How to create POJOs with JAXB and JPA Annotations from XSD?(How to create POJOs with JAXB and JPA Annotations from XSD?)
How to create POJOs with JAXB and JPA Annotations from XSD? [message #1128211] Mon, 07 October 2013 09:05 Go to next message
Eclipse UserFriend
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?

Thanks,
John
Re: How to create POJOs with JAXB and JPA Annotations from XSD? [message #1130634 is a reply to message #1128211] Wed, 09 October 2013 15:37 Go to previous message
Eclipse UserFriend
Hyperjaxb offers the ability to generate a JAXB model with JPA annotations from an XML schema, but I have not tried it:

- http://xircles.codehaus.org/projects/hyperjaxb3
Previous Topic:Problem with Transaction Management
Next Topic:JPA: subquery SQL generation bug
Goto Forum:
  


Current Time: Tue Jul 22 23:23:54 EDT 2025

Powered by FUDForum. Page generated in 0.04682 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top