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

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -