事务代码规范写法 public class TestHibernate { @Test public void test2(){ SessionFactory sessionFactory = null; Session session = null; Trans...