use of de.spring.example.persistence.converters.DateToOffsetDateTimeConverter in project JavaForFun by gumartinm.
the class MongoConfiguration method customConversions.
// IT DOES NOT WORK!!!
// I THINK THERE IS A BUG BECAUSE MappingMongoConverter.this.conversionService never includes my custom converters!!!!
@Bean
@Override
public CustomConversions customConversions() {
List<Converter<?, ?>> converterList = new ArrayList<>();
converterList.add(new OffsetDateTimeToDateConverter());
converterList.add(new DateToOffsetDateTimeConverter());
return new MongoCustomConversions(converterList);
}
Aggregations