private final BeanPropertyRowMapper<Foo> rowMapper;
// in constructor
this.rowMapper = new BeanPropertyRowMapper<>(Foo.class);
// when fetching from DB:
result = jdbcTemplate.queryForObject(sqlQuery, params, rowMapper)
// -->Foo contains a field of LocalDateTime but is null here because it is not supported