利用ibatis 自动生成文件
2010-05-17 15:50
253 查看
一、eclipse install plugin Error Error retrieving "feature.xml". [error in opening zip file]-
错误解决办法:
删除eclipse 根目录下的site.xml,然后重新启动eclipse.
没有这个错误,跳过。
二、在eclipse上安装abator插件
l eclipse菜单栏 --> help --> Software Updates --> Find And Install...
l 对话框中选择 “Search for new features to install” 然后点击 “next”
l 在对话框中点击按钮 New Remort Site... 在弹出的对话框中的URL输入框中填写 http://ibatis.apache.org/tools/abator
l 点击Finish,安装插件,然后重新启动eclipse
一、测试
l 新建一个工程,必须是java工程。
l 新建一个ibatis配置文件 File-->Abator for ibatis ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE abatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Abator for iBATIS Configuration 1.0//EN" "http://ibatis.apache.org/dtd/abator-config_1_0.dtd" >
<abatorConfiguration >
<abatorContext >
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://192.168.1.117:3306/uniscode?useUnicode=true&characterEncoding=utf-8" userId="root" password="123456" >
<classPathEntry location="G:/qcms_ext/uMa/WebContent/WEB-INF/lib/mysql-connector-java-3.1.13-bin.jar" />
</jdbcConnection>
<javaModelGenerator targetPackage="com.test" targetProject="autoTest" />
<sqlMapGenerator targetPackage="com.test" targetProject="autoTest" />
<daoGenerator targetPackage="com.test" targetProject="autoTest" type="GENERIC-CI" />
<table schema="uniscode" tableName="%" >
</table>
</abatorContext>
</abatorConfiguration>
错误解决办法:
删除eclipse 根目录下的site.xml,然后重新启动eclipse.
没有这个错误,跳过。
二、在eclipse上安装abator插件
l eclipse菜单栏 --> help --> Software Updates --> Find And Install...
l 对话框中选择 “Search for new features to install” 然后点击 “next”
l 在对话框中点击按钮 New Remort Site... 在弹出的对话框中的URL输入框中填写 http://ibatis.apache.org/tools/abator
l 点击Finish,安装插件,然后重新启动eclipse
一、测试
l 新建一个工程,必须是java工程。
l 新建一个ibatis配置文件 File-->Abator for ibatis ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE abatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Abator for iBATIS Configuration 1.0//EN" "http://ibatis.apache.org/dtd/abator-config_1_0.dtd" >
<abatorConfiguration >
<abatorContext >
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://192.168.1.117:3306/uniscode?useUnicode=true&characterEncoding=utf-8" userId="root" password="123456" >
<classPathEntry location="G:/qcms_ext/uMa/WebContent/WEB-INF/lib/mysql-connector-java-3.1.13-bin.jar" />
</jdbcConnection>
<javaModelGenerator targetPackage="com.test" targetProject="autoTest" />
<sqlMapGenerator targetPackage="com.test" targetProject="autoTest" />
<daoGenerator targetPackage="com.test" targetProject="autoTest" type="GENERIC-CI" />
<table schema="uniscode" tableName="%" >
</table>
</abatorContext>
</abatorConfiguration>
相关文章推荐
- 利用python操作android的xml资源文件,让其按照中文自动生成对应中文首字母加起来的名字,并且根据中文在java类里面替代对应的中文
- 利用Mybatis-Generator自动生成Dao、Model、Mapping等文件
- java通过实体类自动生成ibatis文件
- 利用mybatis-generator自动生成JavaBean,mapping映射文件等
- 利用ant自动打包生成apk文件
- 利用Freemarker自动生成JavaBean文件
- 利用hibernate的映射文件,自动生成oracle数据库表
- 利用工具自动生成makefile文件
- 在MyEclipse中利用XDoclet自动生成Hibernate配置和映射文件
- windows下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件
- windows下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件
- 使用Eclipse3.2(MyEclipse)+ abator自动生成iBatis代码以及配置文件的方法
- windows下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件
- linux(以ubuntu为例)下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件
- eclipses利用Mybatis关联Mysql自动生成JavaBean和mybatis配置文件
- Ibatis自动生成dao sqlmapper文件和domain文件过程
- windows下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件
- 利用XDoclet自动生成Hibernate配置文件
- Hibernate中利用配置文件(hbm)自动生成数据库表
- linux(以ubuntu为例)下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件