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 閱讀(126) 評論(0)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 江城| 东海县| 安泽县| 南安市| 闸北区| 博客| 海口市| 寿阳县| 沅江市| 嵩明县| 化隆| 吴江市| 金门县| 方山县| 彭泽县| 霍州市| 鸡西市| 河北省| 诸暨市| 河西区| 清涧县| 四川省| 乾安县| 托里县| 精河县| 博乐市| 新乡市| 石河子市| 宜川县| 饶河县| 隆回县| 襄汾县| 甘孜县| 耿马| 龙泉市| 德州市| 云南省| 江川县| 渭南市| 丰原市| 富平县|