Examples of LongToXmlGregorianCalendarConverter


Examples of ma.glasnost.orika.converter.builtin.DateAndTimeConverters.LongToXmlGregorianCalendarConverter

  }

  @Test
  public void testLongToXmlGregorianCalendarConverter() {
    MapperFactory factory = MappingUtil.getMapperFactory();
    factory.getConverterFactory().registerConverter(new LongToXmlGregorianCalendarConverter());
    MapperFacade mapper = factory.getMapperFacade();
   
    long now = System.currentTimeMillis();
    XMLGregorianCalendar xml = mapper.map(now, XMLGregorianCalendar.class);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.