XSD Schema - JAXB marshaling - Datastore(JPA/JDO) Roundtrip

拟墨画扇 提交于 2019-11-30 14:57:30

You have several options for this use case.

Option #1 - Hyperjaxb3

I have not used this myself, but Hyperjaxb3 is supposed to generate both JAXB and JPA annotations on the model:

Option #2 - Use Dali to map your POJOs to Database (JPA)

The Eclipse Dali tool provides tooling to easily map your POJOs to a relational database using JPA:

Option #3 - Use EclipseLink

EclipseLink provides both JPA and JAXB implementations. The JAXB implementation (MOXy) contains extensions specifically for handling JPA entities:

Use DataNucleus and you can persist via JDO or JPA and internally it uses JAXB. http://www.datanucleus.org

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!