摘要: Hibernate 在test01右键新建其他找到hibernate文件夹下的Hibernate Configuration File(cfg.xml) lib下面的.jar文件 点击第一个文件 再按shift 再点最后一个文件就全选了。 阅读全文
posted @ 2016-11-07 20:35 hanruyue 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 原理:1.通过Configuration().configure();读取并解析hibernate.cfg.xml配置文件2.由hibernate.cfg.xml中的<mapping resource="com/xx/User.hbm.xml"/>读取并解析映射信息3.通过config.buildS 阅读全文
posted @ 2016-11-07 10:10 hanruyue 阅读(642) 评论(0) 推荐(0) 编辑