问答 2022-04-15 来自:开发者社区

Spring3+hibernate3 在dao层使用Query的executeUpdate不回滚

Dao层@Overridepublic int updateRetrailState(Integer orsa_id, int srcState, int targetState, String userName) { String hql="update RBSaleruoverapp ap set ap.oroaState = :oroaState ,ap.oroaReviewnametwo....

问答 2022-04-15 来自:开发者社区

Spring事务service中,如果处理了dao层的异常,事务还能否回滚?

dao层方法在service层中执行出现了异常,并且我手动在service层接收并处理了异常,这时AOP绑定在service层的事务还能不能回滚了?

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

微服务

构建可靠、高效、易扩展的技术基石

+关注