Transaction tx = null; tx = HibernateUtil.currentSession("hibernate.cfg.xml").beginTransaction(); 查看完整描述