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)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 伊川县| 枞阳县| 尉氏县| 赣州市| 昭苏县| 普陀区| 株洲县| 虞城县| 中超| 黄山市| 曲阳县| 两当县| 嘉黎县| 湖北省| 高淳县| 育儿| 夹江县| 合肥市| 兴文县| 遂昌县| 察隅县| 栖霞市| 平罗县| 山东省| 合作市| 辽阳县| 武穴市| 石景山区| 石门县| 沙湾县| 开鲁县| 寿阳县| 调兵山市| 永安市| 保康县| 衢州市| 赤城县| 吐鲁番市| 黔西| 永昌县| 高唐县|