@Override
    public Short toJavaType(Column column, Class<?> entityType, Integer date) {
        if (date == null) return null;

        final int day = date % 100;
        final int month = (date % 10_000 - day) / 100;
        final int year = date / 10_000;

        final LocalDate localDate = LocalDate.of(year, month, day);
        return  (short) ChronoUnit.DAYS.between(localDate, LocalDate.of(1970, 1,1));
    }
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