@Override
    public void setValue(PreparedStatement st, int startIndex, UUID value) throws SQLException {
        if (asString) {
            st.setString(startIndex, value.toString());
        } else {
            st.setObject(startIndex, value);
        }

    }
{@code UtilUUIDType} maps UUID to String on the JDBC level

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