成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

iBATIS的自動代碼生成工具Abator在Eclipse的應用

開發 后端
iBATIS的自動代碼生成工具Abator在Eclipse的應用是如何的呢?是不是一頭霧水呢?那么本文將向你介紹具體的iBATIS的自動代碼生成工具Abator在Eclipse里的應用詳情。

iBATIS的自動代碼生成工具Abator在Eclipse的應用呢首先就是iBATIS的準備:

1、獲得 iBATIS

http://ibatis.apache.org/abator.html   

Eclipse可以自動的進行Update獲取此Plugin,官方的安裝步驟.   
    
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:   
  
Take the "Help﹥Software Updates﹥Find and Install" Menu Option    

Select the "Search for new features to install" radio button, press "Next"   
 
Press the "New Remote Site" button    

Enter the following information:    

Name:    

Abator for Eclipse Update Site   
 
URL:    

http://ibatis.apache.org/tools/abator   
 
Press OK    

Check the box next to "Abator for Eclipse Update Site"  
 
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,結果未找到對應的表  
 
簡單的配置如下,復雜的見配置文件的詳細說明。示例配置文件如下  

  1. ﹤abatorConfiguration﹥     
  2.   ﹤abatorContext﹥         
  3.     ﹤jdbcConnection driverClass="com.microsoft.jdbc.sqlserver.SQLServerDriver"     
  4.         connectionURL="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=whm;SelectMethod=cursor"     
  5.         userId="sa"     
  6.         password="sa"﹥     
  7.       ﹤classPathEntry location="C:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/mssqlserver.jar" /﹥     
  8.       ﹤classPathEntry location="C:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/msutil.jar" /﹥     
  9.       ﹤classPathEntry location="C:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/msbase.jar" /﹥     
  10.     jdbcConnection﹥     
  11.      
  12.     ﹤javaModelGenerator targetPackage="com.dwerp.itatis.domain" targetProject="BhbManage" /﹥     
  13.     ﹤sqlMapGenerator targetPackage="com.dwerp.itatis.persistence.xml" targetProject="BhbManage" /﹥     
  14.     ﹤daoGenerator type="IBATIS" targetPackage="com.dwerp.itatis.persistence.sqlmapdao" targetProject="BhbManage" /﹥     
  15.      
  16.     ﹤table tableName="BHBGL"﹥     
  17.           
  18.     table﹥     
  19.      
  20.   ﹤/abatorContext﹥     
  21. ﹤/abatorConfiguration﹥    

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

iBATIS的自動代碼生成工具Abator在Eclipse里的應用就向你介紹到這里,希望對你有所幫助。

【編輯推薦】

  1. iBATIS的優、缺點及注意事項淺談
  2. iBATIS操作Blob與Clob淺析
  3. iBATIS讀寫CLOB數據淺析
  4. iBATIS操作CLOB字段實戰淺析
  5. iBATIS for Eclipse設置淺析
責任編輯:仲衡 來源: 百度空間
相關推薦

2009-07-14 17:12:26

ibatis自動代碼生

2009-07-16 11:40:23

ibatis自動生成abator

2009-07-16 09:09:36

ibatis自動代碼

2009-07-16 11:21:19

ibatis主鍵自動生成

2009-07-14 18:24:31

ibatis映射文件

2009-07-16 11:35:57

自動生成ibatis改造

2009-07-15 17:19:31

iBATIS Ecli

2009-07-17 10:59:59

iBATIS接口

2009-07-21 10:39:19

動態Mapped St

2019-11-05 18:50:37

代碼開發工具

2012-04-19 17:16:32

Titanium實例代碼分析

2012-07-16 01:41:54

ibatis搭建應用

2009-06-29 17:03:41

自動生成Getter和Eclipse

2009-07-17 10:32:45

iBATIS MapB

2009-07-22 11:11:39

iBATIS分頁實例ObjectDataS

2009-09-24 16:56:12

Hibernate S

2010-05-06 10:41:43

ibmdwLotusEclipse

2009-06-29 09:08:12

半自動化ORM實現

2023-08-29 15:14:32

2012-05-31 09:14:58

Rexsee
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 精品国产一区二区久久 | 在线免费观看黄a | 在线观看黄色 | 国产视频第一页 | 狠狠av | 久草成人| 毛片在线看片 | 中文字幕综合 | 国产美女精品视频 | 免费亚洲婷婷 | 亚洲色图综合 | 91色视频在线观看 | 4hu最新网址 | 国产欧美在线 | 求个av网址 | 久国产 | 国产成人在线视频 | 成人精品鲁一区一区二区 | 精品久久久久久久久久久久久久 | 不卡一二三区 | 91在线精品秘密一区二区 | 亚洲国产黄色av | 成人免费视频网站在线观看 | 99精品国自产在线 | 亚洲国产aⅴ成人精品无吗 国产精品永久在线观看 | 高清18麻豆 | 欧美xxxx在线 | 欧美成人猛片aaaaaaa | 亚洲一区中文字幕 | 热re99久久精品国99热观看 | www.日本精品 | 国产99久久精品一区二区永久免费 | 怡红院怡春院一级毛片 | 日韩视频一区 | 九九九久久国产免费 | 亚洲第一在线 | 91色综合| 成人久久18免费 | 日韩欧美不卡 | 日韩精品免费一区二区在线观看 | 99免费在线观看视频 |