1 getCurrentSession创建的session会和绑定到当前线程,而openSession每次创建新的session。
2 getCurrentSession创建的线程会在事务回滚或事物提交后自动关闭,而openSession必须手动关闭
From : http://www.blogjava.net/QJames/archive/2011/04/14/348274.html
From : http://www.outshine.cn/entry/hibernate_getCurrentSession.html