kristain

博客园 首页 新随笔 联系 订阅 管理

<?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://localhost:3306/db" userId="root" password="root" >
      <classPathEntry location="F:\workspace3.7\test\WebContent\WEB-INF\lib\mysql-connector-java-5.1.13-bin.jar" />
    </jdbcConnection>
    <javaModelGenerator targetPackage="com.test.model" targetProject="test/src" />
    <sqlMapGenerator targetPackage="com.test.sqlmap" targetProject="test/src" />
    <daoGenerator type="IBATIS" targetPackage="com.test.dao" targetProject="test/src">
      <property name="enableSubPackages" value="true" />
    </daoGenerator>

   
    <!--<daoGenerator targetPackage="IBATIS" targetProject="com.test.dao" type="GENERIC-CI" />-->
    <table schema="db" tableName="customer" >
      <!--<columnOverride column="???" property="???" />-->
      <generatedKey column="CustomerID" sqlStatement="MYSQL" identity="true" type="post"/>
    </table>
  </abatorContext>
</abatorConfiguration>

posted on 2012-03-20 22:48  kristain  阅读(221)  评论(0编辑  收藏  举报