com.godmonth.util.jaxb.adapters.joda.time.LocalDateTimeAdapter Maven / Gradle / Ivy
package com.godmonth.util.jaxb.adapters.joda.time;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import org.joda.time.LocalDateTime;
public class LocalDateTimeAdapter extends XmlAdapter {
public LocalDateTime unmarshal(String v) throws Exception {
return new LocalDateTime(v);
}
public String marshal(LocalDateTime v) throws Exception {
return v.toString();
}
}