<?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 ">
<!-- 注意: 本文件仅仅是用来生成代码的工具配置文件,不需要打入发布包中 -->
<!-- 由于ECLIPSE6.0的ABATOR插件有问题,可以采用命令行执行abator来生成代码文件 -->
<!-- D:\workspace\ht4a>java -cp abator.jar org.apache.ibatis.abator.api.AbatorRunnerabatorConfig.xml true -->
<!-- 建议将代码生成到一个临时文件中,以保证生成的代码不会直接覆盖已有代码 -->
<abatorConfiguration>
<!-- defaultModelType="conditional"表示每个table生成一组代码文件
defaultModelType="flat" 表示所有table共生成一组代码文件-->
<abatorContext id="htjs" generatorSet="Java2" defaultModelType="conditional">
<!-- TODO: Add Database Connection Information -->
<!--<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@10.0.10.35:1521:htcom"
userId="ht4a"
password="123">
<classPathEntry location="D:/workspace/ht4a/lib/class12.jar" />
</jdbcConnection>-->
<!--<jdbcConnection driverClass="com.microsoft.jdbc.sqlserver.SQLServerDriver"
connectionURL="jdbc:microsoft:sqlserver://10.0.10.35:1433;databaseName=htcom"
userId="ht4a"
password="123">
<classPathEntry location="D:/workspace/ht4a/lib/sqljdbc.jar" />
</jdbcConnection>-->
<!--<jdbcConnection driverClass="Com.ibm.db2.jdbc.net.DB2Driver"
connectionURL="jdbc:db2://10.0.10.35:50000/htcom"
userId="ht4a"
password="123">
<classPathEntry location="D:/workspace/ht4a/lib/db2java.jar" />
</jdbcConnection>-->
<!--<jdbcConnection driverClass="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:htcom"
userId="ht4a"
password="123">
<classPathEntry location="D:/workspace/ht4a/lib/rt.jar" />
</jdbcConnection>-->
<!--<jdbcConnection driverClass="org.postgresql.Driver"
connectionURL="jdbc:postgresql://10.0.10.35/htcom"
userId="ht4a"
password="123">
<classPathEntry location="D:/workspace/ht4a/lib/pgjdbc2.jar" />
</jdbcConnection>-->
<!--<jdbcConnection driverClass="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=F:\\data.mdb"
userId="ht4a"
password="123">
<classPathEntry location="D:/workspace/ht4a/lib/rt.jar" />
</jdbcConnection>-->
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://10.0.10.35:3306/htcom"
userId="ht4a"
password="123">
<classPathEntry location="D:/workspace/ht4a/lib/mysqldriver.jar" />
</jdbcConnection>
<!--<property name="suppressTypeWarnings" value="false"/>-->
<!-- 对于数据库中DECIMAL or NUMERIC类型字段是否强制使用java.math.BigDecimal表示 -->
<javaTypeResolver type="DEFAULT">
<property name="forceBigDecimals" value="false"/>
</javaTypeResolver>
<!-- 生成VO代码文件 包括一个POJO类和一个WHERE条件拼装管理类 其中abator_source为一临时文件夹,下同-->
<javaModelGenerator targetPackage="htjs.rbac.model" targetProject="abator_source" type="DEFAULT" >
<property name="enableSubPackages" value="false"/>
<property name="rootClass" value="htjs.rbac.model.Abase4a"/>
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<!-- 生成SQLMAP XML文件 -->
<sqlMapGenerator targetPackage="config.sqlmaps" targetProject="abator_source" type="DEFAULT">
<property name="enableSubPackages" value="false"/>
</sqlMapGenerator>
<!-- 生成DAO代码文件,包括一个接口文件和一个实现类文件 -->
<daoGenerator type="spring" targetPackage="htjs.rbac.dao" targetProject="abator_source">
<property name="enableSubPackages" value="false"/>
<property name="methodNameCalculator" value="default"/>
<property name="exampleMethodVisibility" value="public"/>
<!--<property name="rootInterface" value=""/>-->
</daoGenerator>
<!-- 要生成代码的数据表或者视图 用columnOverride标签的property定制属性名,区分大小写-->
<table schema="ht4a" tableName="Operate">
<property name="useActualColumnNames" value="false"/>
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride column="id" property="id"/>
</table>
<table schema="ht4a" tableName="Permit">
<property name="useActualColumnNames" value="false"/>
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride column="id" property="id"/>
</table>
<table schema="ht4a" tableName="Resource">
<property name="useActualColumnNames" value="false"/>
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride column="id" property="id"/>
</table>
<table schema="ht4a" tableName="catalog">
<property name="useActualColumnNames" value="false"/>
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride column="id" property="id"/>
</table>
<table schema="ht4a" tableName="Role">
<property name="useActualColumnNames" value="false"/>
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride column="id" property="id"/>
</table>
<table schema="ht4a" tableName="User">
<property name="useActualColumnNames" value="false"/>
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride column="id" property="id"/>
</table>
</abatorContext>
</abatorConfiguration>