标签:cal ring 提交 nal string automatic rem action ima
@Transactional
@Modifying(clearAutomatically = true)
@Query(value ="update user set gender=:gender,phone=:phone,email=:email,updatetime=:updatetime,remarks=:remarks where u_id=:u_id", nativeQuery=true)
int update(String name, BigDecimal height, BigDecimal weight, int id);
参考:
@Transactional 作用:用于提交事务
@Modifying(clearAutomatically = true) 作用:自动清除实体里保存的数据
标签:cal ring 提交 nal string automatic rem action ima
原文地址:https://www.cnblogs.com/liushuaibiao/p/13183717.html