spring data rest - SDR 2.5.1 ManyToOne vs ManyToMany -
when create resource manytoone relation resource ok. resource created , other resource gets linked.
when try create resource manytomany relation resource type other resources not loaded orm (hibernate 5) , resource cannot persited. when create resource without linked resources , patch resouces works.
is intent or bug?
does not work:
post /foo {"name": "foo", "links": ["/1", "/2"]}
works:
post /foo {"name": "foo"} patch /foo/1 {"links": ["/1", "/2"]}
Comments
Post a Comment