ibatis代码生成工具abator使用全过程-(tanlier1)
来源:互联网 发布:幸运28网站源码 编辑:程序博客网 时间:2024/06/05 08:31
1、获得
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,结果未找到对应的表
简单的配置如下,复杂的见配置文件的详细说明。示例配置文件如下
<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,生成文件。
- ibatis代码生成工具abator使用全过程-(tanlier1)
- ibatis代码生成工具abator使用全过程
- ibatis - 自动代码生成工具abator 使用介绍
- 使用iBatis的自动化代码生成工具Abator
- ibatis - 自动代码生成工具abator 使用介绍
- Abator —— IBatis 代码生成工具
- Abator —— IBatis 代码生成工具
- Abator —— IBatis 代码生成工具
- 使用Abator生成iBatis代码框架
- Abator 生成 Ibatis 代码使用规范
- Ibatis自动生成工具-Abator
- ibatis - 自动代码生成工具abator 使用介绍(s00n原作)
- 如何在Eclipse中使用ibatis的自动代码生成工具Abator
- 为Eclipse 添加 Abator —— IBatis 代码生成工具
- 使用abator自动生成ibatis代码的经验
- Abator代码生成工具 - -Eclipse下Ibatis|Mybatis代码生成工具 利器
- ibatis自动生成工具,abator使用方法
- ibatis自动生成工具,abator使用方法
- IPCC Express 4.0(3)安装指南
- what is JBoss?
- Cisco CallManager 简单配置和测试
- Unity Connection 1.2.1安装指南
- Cisco Unified Video Advantage与IP phone集成
- ibatis代码生成工具abator使用全过程-(tanlier1)
- 一客户在Cisco3640上配置VoIP
- 通用表表处理设计
- flex图片应用
- 几个简单的voip的小例子
- What is WebLogic?
- 用普通Win2k安装CallManager系统需添加的组件
- 如何执行unix下的exe程序
- 来自MIT人工智能实验室:如何做研究?