面试:----Hibernate工做原理及为何要用?

Hibernate工做原理及为何要用? 原理: 1.经过Configuration().configure();读取并解析hibernate.cfg.xml配置文件 2.由hibernate.cfg.xml中的<mapping resource="com/xx/User.hbm.xml"/>读取并解析映射信息 3.经过config.buildSessionFactory();//建立Session
相关文章
相关标签/搜索