andyj2ee

          java tec sky

          統計

          留言簿(4)

          activemq

          aop

          design pattern

          other blog

          spring

          workflow

          多線程

          軟件架構師

          閱讀排行榜

          評論排行榜

          Spring Hibernate Config: mappingDirectoryLocations

           I have seen a bunch of projects which are using Spring and Hibernate, and have something like the following in their applicationContext.xml file.

          <property name="mappingResources">
          <list>
          <value>com/almaer/model/Person.hbm.xml</value>
          <value>com/almaer/model/Car.hbm.xml</value>
          <value>com/almaer/model/Engine.hbm.xml</value>
          <value>com/almaer/model/Toy.hbm.xml</value>
          </list>
          </property>

           Luckily, you can just point to the directory now, and have Spring work it out for you :)

          <property name="mappingDirectoryLocations">
          <list>
          <value>WEB-INF/mappings</value>
          </list>
          </property>



          方向:分布式系統設計

          posted on 2005-04-20 13:59 java光環 閱讀(1393) 評論(0)  編輯  收藏 所屬分類: spring

          主站蜘蛛池模板: 东丰县| 巍山| 惠州市| 温宿县| 肥西县| 财经| 天门市| 和政县| 沙洋县| 墨竹工卡县| 岗巴县| 治多县| 大洼县| 常熟市| 遂川县| 济宁市| 延津县| 凉城县| 新竹县| 洛川县| 波密县| 永兴县| 淮北市| 岫岩| 恩平市| 集贤县| 勐海县| 颍上县| 桂林市| 乌兰察布市| 尚志市| 陆良县| 永年县| 兖州市| 吉木乃县| 多伦县| 佳木斯市| 漳州市| 鱼台县| 珠海市| 邵东县|