Category: Experience

Be careful, when you are using CrudReporsitory.save() in JPA 0

Be careful, when you are using CrudReporsitory.save() in JPA

in some JPA project, CrudReporsitory.save() is used this way:

sometime the oldEntity will be set with new properties, but sometimes you will find that the new assigned ID has not been set to...