JAXB, Custom bindings, Adapter1.class and Joda-time

前端 未结 7 1612
时光说笑
时光说笑 2021-01-11 15:38

I have a problem with the way JAXB is generating the bound classes for an XML schema (which, for sake of precision, I cannot modify). I want to map a xsd:date type to a Joda

7条回答
  •  醉梦人生
    2021-01-11 15:46

    You do not need to extend XmlAdapter and with Joda-Time v2, you do not even need to implement static methods, as they are already provided.

    
    

    See JAXB datatype converters for xs:date xs:time and xs:dateTime

提交回复
热议问题