Use Java8 Time Instead Of Jaxb Gregorian
Please stop using XmlGregorianCalendar as the default type to model xs:date
or xs:dateTime
in a JAXB class. If you’re on Java 8 or later then you should be using the new java.time
classes like LocalDate
, LocalDateTime
, and ZonedDateTime
.