I want to use JavaScrip GUI API who only send me the attributes they have 
changed inside the object. So I get an object with many null values inside 
the attributes and when I run an ordinary update command, jOOQ will null 
all existing attributes inside the database. Is there an option where the 
jOOQ CRUD update command generates only updates for not null values?

*SQL Table before jOOQ update*
Author
Id | Firstname| Lastname
1 | Rudi| Schürle

*json update request*






*{  Author:   {    id:1,    firstname="Rudolf"  }}*

*Code*
Author author = gson.fromJson(jsonElement, Author.class); // gson set 
Lastname to null

AuthorRecord updateRecord = session.newRecord(AUTHOR,author);
updateRecord.update(); //Lastname with null value will persist inside the 
database

*SQL Table after jOOQ update << Issue*
Author
Id | Firstname| Lastname
1 | Rudolf | null

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