Hi

I have the following code tfor table ENTITY_TABLE = (id, name, code)

Record record = dsl.newRecord(getTable(), entity);
dsl.update(getTable())
        .set(record)
        .where(getTableId().eq(record.getValue(getTableId())))
        .execute();


and DTO Entity (id, name) - using which JOOQ record is created



This expression generates UPDATE for 3 fields (id, name, code) instead of 2.


Hence, code value in DB become null.


I would expect only 2 fields to be updated.


I tried record.changed(CODE, false), but this did not word.


Is there a way to generate update for only those columns that were actually 
found in DTO without manual setting them?



Regards.

-- 
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