hibernate第一个程序
摘要:
public class Client { public static void main(String[] args) { //读取ibernate.cfg.xml Configuration cfg = new Configuration().configure(); //创建SessionFactory SessionFactory factory = cfg.buildSessionFactory(); Session session =null; try{ //创建session session = factory.openSession(); //开启... 阅读全文
posted @ 2013-07-31 09:51 鱼东鱼 阅读(158) 评论(0) 推荐(0) 编辑