mybatis-mapper / mapper

MyBatis Mapper
https://mapper.mybatis.io
Apache License 2.0
325 stars 47 forks source link

是否有方法可以用代码对查询语句加锁 #95

Closed zoooooway closed 6 months ago

zoooooway commented 6 months ago

目前我如果需要加锁, 只能在sql里写for update来加锁, 这导致我需要写xml了, 有类似于jpa的setLockMode来使用代码加锁对sql语句加锁的方式吗.

abel533 commented 6 months ago

example方式可以设置前后部分的SQL(startSql,endSql)。