Hibernate工作原理(1)
摘要:这两天再看hibernate,就自己总结了hibernate对jdbc的封装过程。1.通过Configuration().configure();读取并解析hibernate.cfg.xml配置文件2.由hibernate.cfg.xml中的<mapping resource="com/xx/User.hbm.xml"/>读取并解析映射信息3.通过config.buildSessionFactory();//创建SessionFactory4.sessionFactory.openSession();//打开Sesssion5.session.beginTran
阅读全文
posted @ 2012-05-23 17:40