abator生成ibatis的XML代码
下载地址:
http://ibatis.apache.org/abator.html
eclipse插件安装地址:
http://ibatis.apache.org/tools/abator
今天同事配置了这个东东,觉得还是满有用的,配置文件abatorConfig.xml如下:
<?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 generatorSet="Java2"><!-- TODO: Add Database Connection Information -->
<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@25.30.2.250:1521:megaeyes" userId="dev"
password="dev">
<classPathEntry
location="E:\project\ipcamera\WebRoot\WEB-INF\lib\classes12.jar" />
</jdbcConnection>
<javaModelGenerator
targetPackage="com.megaeyes.ipcamera.dao.model"
targetProject="ipcamera/src" />
<sqlMapGenerator
targetPackage="com.megaeyes.ipcamera.dao.ibatis.sql"
targetProject="ipcamera/src" />
<daoGenerator type="SPRING"
targetPackage="com.megaeyes.ipcamera.dao.iface"
targetProject="ipcamera/src" />
<table schema="" tableName="t_user"></table>
</abatorContext>
</abatorConfiguration>
下载地址:
http://ibatis.apache.org/abator.html
eclipse插件安装地址:
http://ibatis.apache.org/tools/abator
今天同事配置了这个东东,觉得还是满有用的,配置文件abatorConfig.xml如下:
<?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 generatorSet="Java2"><!-- TODO: Add Database Connection Information -->
<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@25.30.2.250:1521:megaeyes" userId="dev"
password="dev">
<classPathEntry
location="E:\project\ipcamera\WebRoot\WEB-INF\lib\classes12.jar" />
</jdbcConnection>
<javaModelGenerator
targetPackage="com.megaeyes.ipcamera.dao.model"
targetProject="ipcamera/src" />
<sqlMapGenerator
targetPackage="com.megaeyes.ipcamera.dao.ibatis.sql"
targetProject="ipcamera/src" />
<daoGenerator type="SPRING"
targetPackage="com.megaeyes.ipcamera.dao.iface"
targetProject="ipcamera/src" />
<table schema="" tableName="t_user"></table>
</abatorContext>
</abatorConfiguration>
本文介绍如何使用Abator工具为ibatis框架自动生成XML映射文件及相关代码,并提供了一个具体的配置示例。
2268

被折叠的 条评论
为什么被折叠?



