I am currently upgrading my project to spring data couchbase 4.0.0 and I am now experiencing problems when I want to save a Object with a list. I am not sure if there is an error in my code or this is a bug, but I could not find any informationen about this.
I have a simple user object with an attribute role, which is an ArrayList. The user gets an role added and the save method is called. The interface userService Repository extends PagingAndSortingRepository and the normal save method is called, which worked before 4.0.0 perfectly.
user.getRole().add("ROLE_USER");
user.getRole().forEach(System.out::println);
//Save User in DB
this.userService.save(user);
The Object user is saved correctly, all attributes are saved except the List. The comment list was empty and the true is also correct, role is empty false but without data.
"comment": {
"empty": true
},
"role": {
"empty": false
},
Did something change with the new version or I am doing something wrong?