File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ import io.amplicode.rautils.patch.ObjectPatcher;
49
49
private ObjectPatcher objectPatcher;
50
50
51
51
@PatchMapping (" /{id}" )
52
- public ResponseEntity<FooDto > patch(@PathVariable Integer id, @RequestBody JsonNode fooDtoPatch) {
52
+ public ResponseEntity<FooDto > patch(@PathVariable Integer id,
53
+ @RequestBody JsonNode fooDtoPatch) {
53
54
FooDto fooDto; // load current state of the entity
54
55
FooDto patchedDto = objectPatcher. patch(fooDto, fooDtoPatch);
55
56
@@ -66,7 +67,8 @@ import com.fasterxml.jackson.databind.ObjectMapper;
66
67
private ObjectMapper objectMapper;
67
68
68
69
@PatchMapping (" /{id}" )
69
- public ResponseEntity<FooDto > patch(@PathVariable Integer id, @RequestBody JsonNode fooDtoPatch) throws IOException {
70
+ public ResponseEntity<FooDto > patch(@PathVariable Integer id,
71
+ @RequestBody JsonNode fooDtoPatch) throws IOException {
70
72
FooDto fooDto; // load current state of the entity
71
73
objectMapper. readerForUpdating(fooDto). readValue(fooDtoPatch);
72
74
You can’t perform that action at this time.
0 commit comments