title: Tell JAXB to unmarshal <xs:dateTime> to Date class using annotations
body: <p>When using JAXB with Java-First, fields/properties of type <code>java.util.Date</code> are marshalled and unmarshalled as <code>xs:dateTime</code> and everything works as expected.</p>
  
  <p>But if the type of the field/property is <code>Object</code>, JAXB unmarshals <code>xs:dateTime</code>to <code>XMLGregorianCalendarImpl</code>.</p>
  
  <p>I need to find a way that makes JAXB unmarshal date-time values to <code>java.util.Date</code> by itself using annotations. Otherwise, I'll need to go through all unmarshalled values in each use case.</p>
  
  <p>Even if there were some after-unmarshall-hook to define on the classes containing Object fields and convert the instances manually would be good. But I couldn't find anything that can be used this way either. </p>
  
  <p>Note that I have limited access to the JAXB context, as it is used inside Apache CXF.</p>