我正在使用 JPAUpdateClause 更新满足 BooleanExpression where 子句的所有行。
BooleanExpression where = myEntity.id.isNotNull();
long updatedCount = update.where(where)
.set(myEntity.comments, request.getComment())
.execute();
myEntity.comments 是一个字符串。
调用 set() 时是否可以附加 request.getComment() 而不是替换现有值?