I saw this:

https://groups.google.com/d/msg/jooq-user/C2LpNFUewdk/7RINa5ZDKBIJ

and the related issue:

https://github.com/jOOQ/jOOQ/issues/3139

But I don't think it addresses the question I have...


I am creating a query:

create.select(
        CUSTOMER.NAME.as("name"), 
        CUSTOMER.CODE.as("code"), 
        concat(val("/v3/customer/"), CUSTOMER.CODE, val("/vdc")).as("vdc"))
    .where(CUSTOMER.CODE.eq(code));

When I create a MockDataProvider, I can use CUSTOMER.CODE and CUSTOMER.NAME 
as field identifiers, but how do I identify the calculated field in the 
MockDataProvider?

E.g.:

Result<CustomerRecord> result = create.newResult(CUSTOMER);
result.add(create.newRecord(CUSTOMER));
result.get(0).setValue(CUSTOMER.NAME, "John Doe");
result.get(0).setValue(CUSTOMER.CODE, "29793408");
result.get(0).setValue(******What can I put here?!?!******, 
"/v3/customer/29793408/vdc");

Any help would be greatly appreciated!!

Deven

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to