@Override
    public Integer toDatabaseType(Short encoded) {
        if (encoded == null) return null;

        final LocalDate date = LocalDate.ofEpochDay(encoded);
        return date.getYear() * 10_000 + date.getMonthValue() * 100 + date.getDayOfMonth();
    }
Specialized Type Mapper that stores dates on the form {@code YYYYMMDD} as
a single {@code short} value (the number of days since the beginning of epoch
time).

@author Emil Forslund
@since  3.0.11
runtime-parent/runtime-typemapper/src/main/java/com/speedment/runtime/typemapper/integer/DateIntToShortMapper.java