ibator,大快人心,以下对其配置及使用做个简单介绍.
一、Ibator插件安装
两种方法安装其插件
1.下载Ibator插件,可在Eclipse中在线更新或者网上下载,在线更新的地址为:
http://ibatis.apache.org/tools/ibator
2.直接下载插件分别将plugins和features目录下的包文件放在Eclipse中的对应目录下,可下载附件
中的ibator插件
二、ibator使用及配置
1.Eclipse环境中新建一个项目,选择该项目右键New(新建)Apache iBATIS Ibator下 Apache iBATIS
Ibator Configuration File,会在项目中生成ibatorConfig.xml文件
2.打开之后,在ibatorConfiguration元素下增加一个 <classPathEntry
location="E:/ojdbc14.jar"/>,指定你的包文件路径。
3.填写<ibatorContext id="context1" >元素下的内容,我的配置如下:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ibatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Apache iBATIS
Ibator Configuration 1.0//EN" "http://ibatis.apache.org/dtd/ibator-config_1_0.dtd" >
<ibatorConfiguration >
<classPathEntry location="E:/ojdbc14.jar"/>
<ibatorContext id="context1" >
<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@10.17.32.66:1521:LAB1107" userId="lab1107"
password="lab1107" />
<javaModelGenerator targetPackage="com.isbn.bean" targetProject="kk" />
<sqlMapGenerator targetPackage="com.isbn.app.map" targetProject="kk" />
<daoGenerator targetPackage="com.test.dao" targetProject="kk" type="GENERIC-CI" />
<table schema="LAB1107" tableName="T_B_USER" >
</table>
</ibatorContext>
</ibatorConfiguration>
4.选择ibatorConfiguration鼠标右键选择Gneric IBATIS Aritifest,然后可在原文件中看到生成对应
的DAO、SQLMAP以及Bean文件,至此转换完成。
分享到:
相关推荐
Spring +ibatis(ibator)+Extjs 项目 架构 例子 说明文档见:
Ibator is a code generator for iBATIS. Ibator will introspect a database table (or many tables) and will generate iBATIS artifacts that can be used to access the table(s). This abates some of the ...
ibatis插件,自动生成ibatis相关文件
iBATIS插件及教程+DEMO.rar iBATIS插件及教程+DEMO.rar iBATIS插件及教程+DEMO.rar iBATIS插件及教程+DEMO.rar iBATIS插件及教程+DEMO.rar
自己亲自用eclipse+spring+ibatis搭建的基本框架,含有所需的JAR包,下载后只需更改sql2005的连接字符串,即WEB-INF/db-context.xml中的配置,并更改ibatis的xml文件中的sql语句即可运行。
ibatis代码自动生成工具Eclipse插件,已进行优化处理,不生成注释和精简dao方法,亲测可用
eclipse 开发ibatis 插件工具
eclipse + ibatis 自动生成 dao service
ibatis配置ibatis配置ibatis配置ibatis配置ibatis配置 以及相关资料
NULL 博文链接:https://xiao9.iteye.com/blog/954159
ibatis用xml配置文件配置的使用,基本包括了ibatis遇到的所有问题
本人好不容易从朋友公司里找到的 IBATIS的 ORM 生成工具插件 可以自动生成对表的新增 修改 删除 XML配置文件和SQL语句,加快开发速度
ibator插件优化的jar包,安装完ibator后,将eclipse\plugins\org.apache.ibatis.ibator.core_1.2.1下的jar包替换即可。
eclipse ibatis 逆向工程 tao-autodao 插件, 下载之后直接放到 eclipse 的 dropins 目录下,重启eclipse就好了. 使用手册 http://www.doc88.com/p-0764520329345.html
里面有abator的插件设置目录,只需要新建一个link指向abator目录即可,里面的abator.jar是去掉注释的版本
IBATIS3代码生成器 ibatis,Ibator,Abator
经典开源插件之ibatis: 一个使用ibatis对数据库增删改查的例子 数据库, ibatis, 经典, 例子, 插件
NULL 博文链接:https://dr-yanglong.iteye.com/blog/1936559
自动生成dto\dao\xml 自带批处理自动生成程序