hibernate版本:3.3
使用hibernate插入数据后,show_sql能打印出sql语句出来
也没有显示什么异常,但是在数据库中没有记录
在hibernate.cfg.xml添加下面的语句后,问题解决。
<property name="connection.autocommit">true</property>
hibernate版本:3.3
使用hibernate插入数据后,show_sql能打印出sql语句出来
也没有显示什么异常,但是在数据库中没有记录
在hibernate.cfg.xml添加下面的语句后,问题解决。
<property name="connection.autocommit">true</property>
转载于:https://www.cnblogs.com/kcher90/archive/2013/01/17/2863974.html