openSession()与getCurrentSession()区别:
来自 http://blog.youkuaiyun.com/dy511/article/details/6166134 1.getCurrentSession创建的session会和绑定到当前线程,而openSession不会。2. getCurrentSession创建的线程会在事务回滚或事物提交后自动关闭,而openSession必须手动关闭。这里getCurrentSession本地事务(...
原创
2014-08-17 16:18:54 ·
164 阅读 ·
0 评论