I have short question:
Do I need a
repo.save(x) call on
I ask cause I see changes on my DB without save, and read no clear docs about it.
So is it working as intended, or just a (welcome) unexpected behavior?
private UserRepo repo;
public Long put(@RequestBody User user)
User u = repo.findOne(user.getId());
repo.save(u); // DO I NEED THIS LINE?
I’am just unsure about it, so maybe someone can shed some light on the subject?