When mapping a property sfm will looking for a getter/setter from the object to the source/target flat structure - ResultSet, Csv Row, etc …-. If it can’t find one it will then look for a Converter that gets transform to a supported type.

the default converter or in

sfm-converter Maven Central JavaDoc

the joda time one in

sfm-converter-joda-time Maven Central JavaDoc

you can also provide your converters easily. The converter are registered using the ServiceLoader

  1. Create a org.simpleflatmapper.converter.ConverterFactoryProducer
    public class MyConverterFactoryProducer extends AbstractConverterFactoryProducer {
     public void produce(Consumer<? super ConverterFactory<?, ?>> consumer) {
         constantConverter(consumer, Date.class, MyType.class, new DateToMyTypeConverter());
  2. register the service in the META-INF/services/org.simpleflatmapper.converter.ConverterFactoryProducer file