springboot+hibernate5 使用createSQLQuery()事务不起作用
hibernate吧
全部回复
仅看楼主
level 1
嗨喽吴先生
楼主
各位大佬,我用springboot+hibernate5搭的框架。使用原生sql 执行新增修改语句报错(javax.persistence.TransactionRequiredException: Executing an update/delete query)。使用springboot的事务自动管理,在类上也注解了Transactional,但是不起作用。
2020年03月17日 12点03分
1
level 1
刘浏iiii
这种技术吧都没人嘛
2020年04月13日 10点04分
2
1