使用Hibernate,插入,删除,更新时候失效:
1 要么开启事务,完成任务后提交
2 hibernate.cfg.xml配置文件中添加选项
<property name="hibernate.connection.autocommit">true</property>
使用Hibernate,插入,删除,更新时候失效:
1 要么开启事务,完成任务后提交
2 hibernate.cfg.xml配置文件中添加选项
<property name="hibernate.connection.autocommit">true</property>