摘要: 在Spring的applicationContext.xml中配置映射文件,通常是在这个Bean实例中进行的,若配置的映射文件较少时,可以用sessionFactory的所属类LocalSessionFactoryBean的“mappingResources”属性,定义方法如下:com/w3cs/vlar/hibernate/Person.hbm.xmlcom/w3cs/vlar/hibernate/Car.hbm.xmlcom/w3cs/vlar/hibernate/Engine.hbm.xmlcom/w3cs/vlar/hibernate/Toy.hbm.xml当配置文件变得越来越多,阅读 阅读全文
posted @ 2014-02-20 14:40 风雪月归林 阅读(183) 评论(0) 推荐(0) 编辑