Patch Object
Suffix Mapping
public class UserPatch extends UserEntity {
private Integer scoreAe;
}UserEntity userPatch = UserPatch.builder().id(1).valid(true).scoreAe(20).build();
userDataAccess.patch(userPatch);
// SQL: UPDATE t_user SET valid = ?, score = score + ? WHERE id = ?Annotation Mapping
public class UserPatch extends UserEntity {
@Clause("score = score + ?")
private Integer scoreAe;
}Last updated