How to update only required fields from a Domain Class, for instance we have a Domain Class name variables,
String id,
String name,
String desc
and If I want update only the variable "name" for the provided "id", If I dint give "desc" variable its updated as null in the database. Is it possible to persist data which are already in Database by not updating it on.
Now I have GET the details using id and loaded into DAO and resets the name field with provided change and PUT the request to DB.
How to update only required fields from a Domain Class, for instance we have a Domain Class name variables, String id, String name, String desc and If I want update only the variable "name" for the provided "id", If I dint give "desc" variable its updated as null in the database. Is it possible to persist data which are already in Database by not updating it on.
Now I have GET the details using id and loaded into DAO and resets the name field with provided change and PUT the request to DB.
Thanks in advance.