@Override
    public T getValue(ResultSet rs, int startIndex) throws SQLException {
        String name = rs.getString(startIndex);
        return name != null ? Enum.valueOf(type, name) : null;
    }
{@code EnumByNameType} maps Enum types to their String names on the JDBC level

@author tiwe

@param <T>
querydsl-sql/src/main/java/com/querydsl/sql/types/EnumByNameType.java