@Override
    public Short getValue(ResultSet rs, int startIndex) throws SQLException {
        short val = rs.getShort(startIndex);
        return rs.wasNull() ? null : val;
    }
{@code ShortType} maps Short to Short on the JDBC level

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/types/ShortType.java