<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">

<generatorConfiguration>
<!--    mysql数据库-->
    <classPathEntry  location="C:\Users\wewe\Desktop\Dm7JdbcDriver18.jar"/>
<!--    mysql数据库-->
<!--    <classPathEntry  location="/Users/mac/.m2/repository/mysql/mysql-connector-java/8.0.15/mysql-connector-java-8.0.15.jar"/>-->
<!--    oracle 数据库 -->
<!--    <classPathEntry  location="/Users/mac/IdeaProjects/transdata/lib/ojdbc6.jar"/>-->
    <context id="DB2Tables" targetRuntime="MyBatis3">
        <commentGenerator>
            <!-- 是否去除自动生成的注释 -->
            <property name="suppressAllComments" value="true"/>
        </commentGenerator>
        <!-- DM数据库连接的信息：驱动类、连接地址、用户名、密码 -->
        <jdbcConnection driverClass="dm.jdbc.driver.DmDriver"
                        connectionURL="jdbc:dm://192.168.100.179:5236/COLLECT"
                        userId="COLLECT"
                        password="123456789">
        </jdbcConnection>
        <!-- Mysql数据库连接的信息：驱动类、连接地址、用户名、密码 -->
        <!-- 
        <jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"
                        connectionURL="jdbc:mysql://192.168.100.145:3306/scweb_op"
                        userId="root"
                        password="root">
        </jdbcConnection> -->
            <!--         Oracle数据库-->
<!--            <jdbcConnection driverClass="oracle.jdbc.OracleDriver"-->
<!--                connectionURL="jdbc:oracle:thin://@192.168.100.232:1521/orcl.oracle11g"-->
<!--                userId="cast"-->
<!--                password="123456">-->
<!--            </jdbcConnection>-->

        <!-- 默认为false，把JDBC DECIMAL 和NUMERIC类型解析为Integer，为true时
        把JDBC DECIMAL 和NUMERIC类型解析为java.math.BigDecimal -->
        <javaTypeResolver >
            <property name="forceBigDecimals" value="true" />
        </javaTypeResolver>

        <!-- targetProject：生成POJO类的位置 -->
<!--        msyql-->
        <javaModelGenerator targetPackage="com.collection.collection.entity" targetProject="./src/main/java">
<!--        oracle-->
<!--        <javaModelGenerator targetPackage="com.castmember.transdata.pojo.oldPojo" targetProject="./src/main/java">-->
            <!-- enableSubPackages:是否让schema作为包的后缀 -->
            <property name="enableSubPackages" value="false" />
            <!-- 从数据库返回的值被清理前后的空格 -->
            <property name="trimStrings" value="true" />
        </javaModelGenerator>

        <!-- targetProject：mapper映射文件生成的位置 -->
<!--        mysql-->
        <sqlMapGenerator targetPackage="mapping"  targetProject="./src/main/resources">
<!--        oracle-->
<!--        <sqlMapGenerator targetPackage="mapping.olddata"  targetProject="./src/main/resources">-->
            <!-- enableSubPackages:是否让schema作为包的后缀 -->
            <property name="enableSubPackages" value="false" />
        </sqlMapGenerator>

        <!-- targetProject：mapper接口生成的的位置 -->
<!--        mysql-->
        <javaClientGenerator type="XMLMAPPER" targetPackage="com.collection.collection.dao"  targetProject="./src/main/java">
<!--        oracle-->
<!--        <javaClientGenerator type="XMLMAPPER" targetPackage="com.castmember.transdata.dao.olddata"  targetProject="./src/main/java">-->
            <!-- enableSubPackages:是否让schema作为包的后缀 -->
            <property name="enableSubPackages" value="false" />
        </javaClientGenerator>

        <!-- 指定数据表 -->
        <!-- <table schema="" tableName="SJZY_ATM_COMMON_RU_TASK"></table>
        <table schema="" tableName="SJZY_ATM_COMMON_HI_TASK"></table>
        <table schema="" tableName="SJZY_ATM_COMMON_FILE"></table>
        <table schema="" tableName="SJZY_ATM_COMMON_COMMENT"></table>
        <table schema="" tableName="SJZY_ATM_COMMON_RU_DELEGATE"></table>
        <table schema="" tableName="SJZY_ATM_COMMON_HI_DELEGATE"></table>
        <table schema="" tableName="SJZY_ATM_COMMON_DELEGATE_LOG"></table>
        
        <table schema="" tableName="SJZY_ATM_GATHER_PROCESS"></table>
        <table schema="" tableName="SJZY_ATM_GATHER_TASK"></table> -->
        <table schema="" tableName="SJZY_ATM_GATHER_LIST_PROCESS"></table>
        <table schema="" tableName="SJZY_ATM_GATHER_LIST_TASK"></table>
        
        <!-- <table schema="" tableName="SJZY_ATM_SEARCH_PROCESS"></table>
        <table schema="" tableName="SJZY_ATM_SEARCH_TASK"></table>
        <table schema="" tableName="SJZY_ATM_SEARCH_LIST_PROCESS"></table>
        <table schema="" tableName="SJZY_ATM_SEARCH_LIST_TASK"></table>
        
        <table schema="" tableName="SJZY_ATM_USE_PROCESS"></table>
        <table schema="" tableName="SJZY_ATM_USE_TASK"></table>
        <table schema="" tableName="SJZY_ATM_USE_LIST_PROCESS"></table>
        <table schema="" tableName="SJZY_ATM_USE_LIST_TASK"></table>
        
        <table schema="" tableName="SJZY_BASE_POSITION"></table>
        <table schema="" tableName="SJZY_BASE_RESOURCETYPE"></table>
        <table schema="" tableName="SJZY_ORG"></table>
        <table schema="" tableName="SJZY_USER"></table> -->
        
        


        <!-- 有些表的字段需要指定java类型
        <table schema="DB2ADMIN" tableName="ALLTYPES" domainObjectName="Customer" >
          <property name="useActualColumnNames" value="true"/>
          <generatedKey column="ID" sqlStatement="DB2" identity="true" />
          <columnOverride column="DATE_FIELD" property="startDate" />
          <ignoreColumn column="FRED" />
          <columnOverride column="LONG_VARCHAR_FIELD" jdbcType="VARCHAR" />
        </table> -->

    </context>
</generatorConfiguration>