//此处必须加@Transactional,否则不能运行,报错
@Transactional @Modifying @Query("update ExamItem a set a.version=0 where a.id=?1") int setFixedVersionFor(long id);
//此处必须加@Transactional,否则不能运行,报错
@Transactional @Modifying @Query("update ExamItem a set a.version=0 where a.id=?1") int setFixedVersionFor(long id);
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。