@Override
    public Boolean getValue(ResultSet rs, int startIndex) throws SQLException {
        boolean val = rs.getBoolean(startIndex);
        return rs.wasNull() ? null : val;
    }
{@code BooleanType} maps Boolean to Boolean on the JDBC level

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