All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.enilu.flash.core.db.support.LongToDateTimeConverter Maven / Gradle / Ivy

package cn.enilu.flash.core.db.support;

import org.joda.time.DateTime;
import org.springframework.core.convert.converter.Converter;

public class LongToDateTimeConverter implements Converter {
    @Override
    public DateTime convert(Long source) {
        if (source == null) {
            return null;
        }
        return new DateTime(source.longValue());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy