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

org.simpleflatmapper.jdbc.converter.time.TimeToLocalTimeConverter Maven / Gradle / Ivy

package org.simpleflatmapper.jdbc.converter.time;

import org.simpleflatmapper.converter.Context;
import org.simpleflatmapper.converter.ContextualConverter;

import java.sql.Time;
import java.time.LocalTime;

public class TimeToLocalTimeConverter implements ContextualConverter {
    @Override
    public LocalTime convert(Time in, Context context) throws Exception {
        if (in == null) return null;
        return in.toLocalTime();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy