openSession()和getCurrentSession()的区别:

1.openSession() 是获取一个新的session

2.getCurrentSession() 获取的是当前线程绑定的session