自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

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

開發(fā) 后端
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的優(yōu)、缺點及注意事項淺談
  2. iBATIS操作Blob與Clob淺析
  3. iBATIS讀寫CLOB數據淺析
  4. iBATIS操作CLOB字段實戰(zhàn)淺析
  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

動態(tài)Mapped St

2019-11-05 18:50:37

代碼開發(fā)工具

2012-04-19 17:16:32

Titanium實例代碼分析

2009-06-29 17:03:41

自動生成Getter和Eclipse

2012-07-16 01:41:54

ibatis搭建應用

2009-09-24 16:56:12

Hibernate S

2009-07-17 10:32:45

iBATIS MapB

2009-06-29 09:08:12

半自動化ORM實現

2009-07-22 11:11:39

iBATIS分頁實例ObjectDataS

2010-05-06 10:41:43

ibmdwLotusEclipse

2011-09-02 16:21:08

Sencha Touc自動生成工具

2023-08-29 15:14:32

點贊
收藏

51CTO技術棧公眾號