Why does "xsd:date" of XML Schema Type mapped "javax.xml.datatype.XMLGregorianCalendar" When Schema-to-Java Mapping of JAXB does.

Posted by Take on Stack Overflow See other posts from Stack Overflow or by Take
Published on 2010-12-24T10:09:58Z Indexed on 2010/12/27 2:54 UTC
Read the original article Hit count: 200

I don't know why does "xsd:date" of XML Schema Type mapped "javax.xml.datatype.XMLGregorianCalendar" When Schema-to-Java Mapping of JAXB does.

Why does "xsd:date" of XML Schema Type mapped "java.util.Date" ?

I guess that JAXB intentionally does its mapping. I want to know that reason if any.

And if exists it, how to change "xsd:date" of XML Schema Type to "java.util.Date" of Java class without using annotation(ex.@XmlJavaTypeAdapter).

I want to do mashalling and unmarshalling without all annotations.

© Stack Overflow or respective owner

Related posts about xml-schema

Related posts about jaxb