摘要: Hibernate工作原理原理: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.beginTransaction();//创建事务Transatio 阅读全文
posted @ 2012-07-23 21:03 积淀 阅读(246) 评论(0) 推荐(0) 编辑