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

          主站蜘蛛池模板: 赣州市| 高要市| 凌海市| 措美县| 邓州市| 济源市| 三门县| 沙田区| 株洲市| 当雄县| 偏关县| 清苑县| 宜昌市| 临邑县| 库尔勒市| 尉氏县| 巨野县| 沂源县| 潢川县| 合肥市| 周宁县| 巨鹿县| 名山县| 南京市| 斗六市| 青川县| 庄河市| 乌苏市| 安多县| 兰溪市| 苗栗县| 孟津县| 南溪县| 武平县| 宜良县| 土默特右旗| 吕梁市| 内乡县| 长宁县| 贺州市| 安塞县|