Be careful, when you are using CrudReporsitory.save() in JPA
in some JPA project, CrudReporsitory.save() is used this way:
1 |
repository.save(oldtEntity) |
sometime the oldEntity will be set with new properties, but sometimes you will find that the new assigned ID has not been set to...