By screener
via javarevisited.blogspot.in
Published: Feb 20 2013 / 21:26
By default XJC, which is used to create Java classes from XML Schema, maps date, time and datetime XSD types to XMLGregorianCalendar in Java. Since java.util.Date is mostly used type to represent date and time in Java, we often needs to convert between XMLGregorianCalendar and Date. This article explains, How to convert XMLGregorianCalendar to Date in Java and vice-versa.
Comments
MCII replied ago:
" It's possible to customize XJC to generate Date instead of XMLGregorianCalendar " Yes!!
Voters For This Link (6)
Voters Against This Link (2)