@@ -0,0 +1,527 @@
+package milo.utils.rest.jaxbadapters;%0A%0Aimport javax.xml.bind.annotation.adapters.XmlAdapter;%0Aimport java.sql.Time;%0A%0Apublic class TimeToString extends XmlAdapter%3CString, Time%3E %7B%0A%0A%09@Override%0A%09public String marshal(Time time) throws Exception %7B%0A%09%09return time == null ? null : time.toString().length() %3E= 8 ? time.toString().substring(0, 5) : time.toString();%0A%09%7D%0A%0A%09@Override%0A%09public Time unmarshal(String time) throws Exception %7B%0A%09%09if (time != null && time.length() == 5) %7B%0A%09%09%09time += %22:00%22;%0A%09%09%7D%0A%09%09return Time.valueOf(time);%0A%09%7D%0A%0A%7D%0A

add jaxb Time String adapater