使用休眠更新查询

时间:2018-10-06 05:56:22

标签: mysql hibernate

我想使用休眠更新查询。我的查询就是这样-

"proxy": {
  "/auth/*": {
    "target": "http://localhost:5000"
  },
  "/api/*": {
    "target": "http://localhost:3090"
  }
}

enter image description here

在该表中,referral_code和shared_referral_code的值相同,但user_wallet的值不同。我希望在更新数据库时必须更新值,例如

update premiummembership set user_wallet=:user_wallet + 50 where refferal_code=:refferal_code or shared_referral_code=:shared_referral_code

如何使用休眠模式实现?希望有人可以帮助我解决问题。 预先感谢。

0 个答案:

没有答案