On Wed, Jan 1, 2020 at 10:27 PM Daniel Clusin <[email protected]> wrote:

> I've found a workaround by explicitly executing an insert state a-la:
> context.insertInto(WORKER).columns(WORKER.ID,
> WORKER.EMAIL).values(worker.getId(), worker.getEmail()).execute();
>
>
An additional, perhaps more convenient workaround is to use this synthetic
syntax here:

  context.insertInto(WORKER).set(worker).execute();

Or even shorter

  context.executeInsert(worker);

See
https://www.jooq.org/javadoc/latest/org.jooq/org/jooq/InsertSetStep.html#set(org.jooq.Record)

https://www.jooq.org/javadoc/latest/org.jooq/org/jooq/DSLContext.html#executeInsert(org.jooq.TableRecord)

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/CAB4ELO4p_pHh4d9oeEMnDdvMNyvZQrYY_Kne%2Bw5rkW%2BT1n2d0w%40mail.gmail.com.

Reply via email to