From my understanding, when an object gets unmarshalled by Jackson, non-mentioned fields in the request call will be set to default value (null if an object), and if there is a constraint on that specific field, say @NotNull, validation fails. Hence partial updates won't be possible.
Does anyone know what is the best workaround for this (partial updates in REST)? Has anyone implemented such thing before?
My hunch is, a merge on the original object (from db) and the new unmarshalled object must occur, and then the object should get validated, but really have no clue how to implement this. Any other ideas would be appreciated.
I'm using Spring 3.1.2 and Jackson 1.9.7.