本文介绍了JPA +休眠+自动提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道为什么当我关闭JPA配置文件中的自动提交功能时,我得到了这个警告吗?

Does anybody know why I get this warning when I turn off the auto-commit in JPA configuration file?

使用此设置:

Using this setting :

<property name="hibernate.connection.autocommit" value="false"/>

会产生以下警告:

generates this warning :

2009-08-04 09:54:10,621 [main] WARN org.hibernate.ejb.Ejb3Configuration - hibernate.connection.autocommit = false break the EJB3 specification

这会如何打破EJB3规范?

How would this break EJB3 specification?

推荐答案

从EJB 3.0规范的第13.3.4节:

From section 13.3.4 of the EJB 3.0 specification:

这篇关于JPA +休眠+自动提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-27 05:14
查看更多