1

Let's say I have a AFolder class with name, description and a List<AFile> as an attribute. Now assume that I have created a AFolder object with its list of AFile populated. If I try to update using PUT/PATCH with something like {"name": "new name", "description": "new description"} then the list of AFile came back empty

How to resolve this problem?

wakandan
  • 1,099
  • 4
  • 19
  • 27

2 Answers2

1

Looks like you're running into this issue which has been fixed in Spring Data REST 2.1.1.

Oliver Drotbohm
  • 80,157
  • 18
  • 225
  • 211
0

The weird thing is that I got this situation too when I use Spring Data Rest 2.2.0.RELEASE, and resolved this problem when changed the version to 2.1.1.

Daniel Wei
  • 619
  • 1
  • 8
  • 12