摘要: public void TianJia(Usertest u) { Session s= null; Transaction ts = null; try { s=sessionFactory.openSession(); ts=s.beginTransaction();//开始事务 s.save(u); ts.commit(); //提交事务 } catch (Exceptio... 阅读全文
posted @ 2014-02-05 15:28 老汉! 阅读(611) 评论(0) 推荐(0) 编辑