wason

          發布一個hibernate的通用ant script

          這個模塊用作從實體類-->hbm.xml-->數據庫,用于配合我的測試驅動開發。寫的時候挺麻煩,但寫好了就一勞永逸了。 this is a common hibernate mapping file builder.it needs parameters below: fileset.hibernate.models : model objects need to generate mapping files.(fileset type) classpath : classpath that those model objects depend on.(path type) dependent optional task : xdoclet.modules.hibernate.HibernateDocletTask must be added to your build path. src.hibernate : where to put generated mapping files. example: 用到的時候,import到build.xml就行了,schemaexport任務要一個hibernate.properties文件,內容如下: hibernate.connection.driver_class=driver name hibernate.connection.url=url hibernate.connection.username=user name hibernate.connection.password=password hibernate.dialect=org.hibernate.dialect.MySQLDialect 像這樣子的,每個項目都會用到的ant script還有挺多的如javadocs等,獨立出來非常方便,呵呵。

          posted on 2006-05-31 13:35 wason-pcwl 閱讀(125) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 灵寿县| 万载县| 商丘市| 潜山县| 中宁县| 喀喇沁旗| 楚雄市| 历史| 二连浩特市| 海原县| 昭平县| 会昌县| 苍南县| 正镶白旗| 综艺| 林州市| 商都县| 得荣县| 枝江市| 澎湖县| 灵寿县| 天水市| 邛崃市| 朝阳市| 阳谷县| 崇礼县| 浙江省| 镇巴县| 巨鹿县| 横峰县| 怀化市| 澎湖县| 乌鲁木齐县| 泰顺县| 黄浦区| 白城市| 黄骅市| 贺兰县| 昭觉县| 响水县| 长子县|