update : used to update an object. If we want to update 2 columns,but still we need to set the data to all the remaining columns,otherwise it updateswith NULL values.
If we have 10 columns,if we want to update one column,then the remaining 9 columns will set to NULL.the solution for this problem is,do not use the session.update(),just load the data,set the new data for the specific columns and then commit.
If we have 10 columns,if we want to update one column,then the remaining 9 columns will set to NULL.the solution for this problem is,do not use the session.update(),just load the data,set the new data for the specific columns and then commit.