首页 > Web开发 > 详细

hibernate(nested transactions not supported)异常

时间:2017-06-04 18:07:50      阅读:315      评论:0      收藏:0      [点我收藏+]

org.hibernate.TransactionException: nested transactions not supported错误的解决方法!

原因:事务没有提交,事务提交后正常

Transaction tx = session.beginTransaction();

tx.commit(); //缺少这句话

hibernate(nested transactions not supported)异常

原文:http://www.cnblogs.com/lmq-1048498039/p/6941153.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!