getCurrentSession与openSession的区别
一:getCurrentSession () ?使用当前的 session
?
注意:1,使用 SessionFactory.
使用:Session s = HibernateUtil.getSessionFactory().getCurrentSession(); 即可获取 Session?
…………