JAXB: @XmlTransient on third-party or external super class

后端 未结 5 1250
慢半拍i
慢半拍i 2021-01-06 03:10

I need some help regarding the following issue with JAXB 2.1.

Sample: I\'ve created a SpecialPerson class that extends a abstract class Person. Now I want to transf

5条回答
  •  猫巷女王i
    2021-01-06 03:34

    The EclipseLink JAXB (MOXy) implementation offers a means of representing the metadata as XML that you could use:

    • http://wiki.eclipse.org/EclipseLink/Examples/MOXy/EclipseLink-OXM.XML

    You can specify some of the metadata using annotations, and the rest as XML. Below is what your document would look like:

        

            

        

提交回复
热议问题