<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 11,  comments - 28,  trackbacks - 0
    對初接觸者來說,到底如何開始使用abator,資源比較少,本文記載了我今日初次使用的過程,希望對和我一樣的初學者有所幫助

    獲得
    ????? http://ibatis.apache.org/abator.html
    ???? Eclipse可以自動的進行Update獲取此Plugin,官方的安裝步驟

    Automatic Eclipse Install

    If you've already installed a prior version of Abator, simply run the Eclipse Install/Update tool and the new version will be found automatically.

    If you've not already installed Abator, then you can use the built in Eclipse install support by following these steps:

    1. Take the "Help>Software Updates>Find and Install" Menu Option
    2. Select the "Search for new features to install" radio button, press "Next"
    3. Press the "New Remote Site" button
    4. Enter the following information:
      Name:
      Abator for Eclipse Update Site
      URL:
      http://ibatis.apache.org/tools/abator
    5. Press OK
    6. Check the box next to "Abator for Eclipse Update Site"
    7. Follow the remainder of the install wizard

    2、安裝好后將在New菜單中看到一個新的文件類型Abator for iBATIS Configuration File,此是Abator的配置文件,配置文件的詳細說明見http://ibatis.apache.org/docs/tools/abator/

    3、新建一個配置文件,進行修改,根據自己的實際需求進行修改
    關鍵點:
    1)jdbcconnection,按照一般的配置即可,需要說明的是它需要指定訪問JdbcDriver的classPathEntry,對于MsSqlServer而言,要將這三個jar文件均包含在內,否則會出現jdbc訪問錯誤。
    2)配置三個Pakage
    3)配置表,此處需說明的是對于MsSqlServer不能寫TableSchema,我初次指定TableSchema,結果未找到對應的表
    簡單的配置如下,復雜的見配置文件的詳細說明。示例配置文件如下
    <abatorConfiguration>
    ? <abatorContext>??? <!-- TODO: Add Database Connection Information -->
    ??? <jdbcConnection driverClass="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    ??????? connectionURL="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=whm;SelectMethod=cursor"
    ??????? userId="sa"
    ??????? password="sa">
    ????? <classPathEntry location="C:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/mssqlserver.jar" />
    ????? <classPathEntry location="C:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/msutil.jar" />
    ????? <classPathEntry location="C:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/msbase.jar" />
    ??? </jdbcConnection>

    ??? <javaModelGenerator targetPackage="com.dwerp.itatis.domain" targetProject="BhbManage" />
    ??? <sqlMapGenerator targetPackage="com.dwerp.itatis.persistence.xml" targetProject="BhbManage" />
    ??? <daoGenerator type="IBATIS" targetPackage="com.dwerp.itatis.persistence.sqlmapdao" targetProject="BhbManage" />

    ??? <table tableName="BHBGL">
    ????
    ??? </table>

    ? </abatorContext>
    </abatorConfiguration>

    4、右鍵單擊配置文件,點擊Generate iBatis Artifacts,生成文件。

    ?

    posted on 2007-01-11 21:37 滌生 閱讀(2020) 評論(1)  編輯  收藏


    FeedBack:
    # re: 如何在Eclipse中使用ibatis的自動代碼生成工具Abator
    2008-12-17 15:23 | 墻頭草
    iBatis大全~   回復  更多評論
      

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


    網站導航:
     
    <2007年1月>
    31123456
    78910111213
    14151617181920
    21222324252627
    28293031123
    45678910

    常用鏈接

    留言簿(5)

    隨筆檔案

    UML

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲成av人片不卡无码| 亚洲男女内射在线播放| 亚洲男女性高爱潮网站| 免费人成毛片动漫在线播放| 伊伊人成亚洲综合人网7777| 一个人免费播放在线视频看片| 亚洲男人在线无码视频| jizz在线免费观看| 亚洲精品午夜无码电影网| 中文字幕无码日韩专区免费| 久久精品亚洲综合一品| 最近中文字幕mv免费高清视频8| 久久精品国产亚洲av麻豆小说| 3d成人免费动漫在线观看| 亚洲AV综合色区无码二区偷拍 | 亚洲人成免费电影| 一级特级aaaa毛片免费观看| 亚洲日韩在线观看| 免费一级毛片在线播放视频| 78成人精品电影在线播放日韩精品电影一区亚洲 | 亚洲Av永久无码精品一区二区| 午夜影视在线免费观看| 国产精品亚洲专区无码不卡| 国产亚洲人成A在线V网站| 特级无码毛片免费视频尤物| 2020年亚洲天天爽天天噜| 国产91在线免费| a级日本高清免费看| 亚洲最大成人网色香蕉| 亚洲AV无码一区二三区| 四虎国产精品永久免费网址| 亚洲一区二区三区高清不卡| 亚洲国产一成久久精品国产成人综合 | 亚洲小说图片视频| 在线观看免费精品国产| 两个人看的www免费视频| 亚洲小说图区综合在线| 国产亚洲自拍一区| 日本一区二区三区免费高清| 一区二区在线视频免费观看| 亚洲免费观看在线视频|