hibernate 的Transaction

Transaction是事务处理, 一般我们在xml中配置让他自动事务处理。

<!--  是否自动提交事务 -->
<property name="hibernate.connection.autocommit">true</property>

自动提交事务一般只有在插入时候会执行 在更新 删除中不会执行

 

猜你喜欢

转载自blog.csdn.net/weixin_41298572/article/details/88144593