I have a JAXB class:
public class Game { private Date startTime; @XmlElement public Date getStartTime() { return startTime; } public void setStartTime(Date startTime) { this.startTime = startTime; } }
which leads to .xsd , where startTime is of type xsd:datetime . I want it to be xsd:time . xsd:time displayed on XmlGregorianCalendar , but the reverse is displayed on xsd:anySimpleType , which is not very useful.
I tried various arguments @XmlElement(type=...) no avail. Any pointers would be greatly appreciated.
If that matters, this is the type used by JAX-WS.
java types jax-ws xsd jaxb
Draemon
source share