cfg = new Configuration().configure("hibernate.cfg.xml"); //2.建立SessionFactory factory = cfg.buildSessionFactory(); //3.获取会话 session = factory.openSession();
开源中国-程序员在线工具:Git代码托管 API文档大全(120+) JS在线编辑演示 二维码 更多»
发表评论 回到顶部 网友评论(0)