2013年4月10日

hibernate笔记一

摘要: 1、在hibernate.cfg.xml中如果配置<property name="current_session_context_class">thread</property>,可以写 Configuration conf = new Configuration() //下面方法默认加载hibernate.cfg.xml文件 .configure(); //以Configuration创建SessionFactory //SessionFactory sf = conf.buildSessionFactory();//该方法过期 ServiceRe 阅读全文

posted @ 2013-04-10 10:56 西门 阅读(127) 评论(0) 推荐(0) 编辑

导航