@Override
    public UUID getValue(ResultSet rs, int startIndex) throws SQLException {
        if (asString) {
            String str = rs.getString(startIndex);
            return str != null ? UUID.fromString(str) : null;
        } else {
            return (UUID) rs.getObject(startIndex);
        }
    }
{@code UtilUUIDType} maps UUID to String on the JDBC level

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