In the following scenario Parent and Child are entities and Item is either a Embeddable or an Entity. Only Parent has a repository that is also exported.
I am kind of wondering: do we actually have to issue the complex merge for PUT requests? Shouldn't the general ….readerForUpdate(…) give us exactly the semantics we need?
To answer my own question: no we cannot as causes Jackson to wipe all nested fields. Nested ones annotated with e.g. @JsonIgnore are thus wiped, although they're not intended to be affected by any Jackson interaction
Mathias D opened DATAREST-956 and commented
In the following scenario
Parent
andChild
are entities andItem
is either a Embeddable or an Entity. OnlyParent
has a repository that is also exported.!http://www.yuml.me/diagram/scruffy/class/%2F%2F Cool Class Diagram, [Parent]->[Child], [Child]<>-*>[Item]!
PUT updates existing items but does not add new items.
Please see this project to reproduce the issue - https://github.com/mduesterhoeft/sdr-put-nested-list. See test
ParentRestIntegrationTest#should_add_new_item
Here are the requests I am issuing:
After the
PUT
the items collection still has size 1Reference URL: #245
Issue Links:
("is duplicated by")
Backported to: 2.6 RC1 (Ingalls), 2.5.6 (Hopper SR6)
The text was updated successfully, but these errors were encountered: