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

前端 未结 2 1548
再見小時候
再見小時候 2021-01-03 01:38

I\'m trying to find a way to accomplish a xsd schema to datastore roundtrip, with minimum effort.

I used jaxb to build my object model from schemas, now I would lik

相关标签:
2条回答
  • 2021-01-03 02:26

    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:

    • http://confluence.highsource.org/display/HJ3/Home

    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:

    • http://www.eclipse.org/webtools/dali/

    Option #3 - Use EclipseLink

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

    • http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA
    0 讨论(0)
  • 2021-01-03 02:27

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

    0 讨论(0)
提交回复
热议问题