<?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>
    <classPathEntry location="/Users/nangua/Developer/src/mysql.com/community/mysql-connector-java-5.1.44-bin.jar"/>

    <context id="context_comm" targetRuntime="MyBatis3Simple" defaultModelType="flat">
        <property name="javaFileEncoding" value="UTF-8"/>
        <property name="beginningDelimiter" value="`"/>
        <property name="endingDelimiter" value="`"/>
        <plugin type="tk.mybatis.mapper.generator.MapperPlugin">
            <property name="mappers" value="tk.mybatis.mapper.common.Mapper"/>
        </plugin>

        <commentGenerator>
            <!-- 是否去除自动生成的注释 true：是 ： false:否 -->
            <property name="suppressAllComments" value="true"/>
        </commentGenerator>
        <jdbcConnection connectionURL="jdbc:mysql://10.10.171.161:3306/biapp"
                        driverClass="com.mysql.jdbc.Driver"
                        password="bL3aACCNuqWCfmeu"
                        userId="biapp">
        </jdbcConnection>
        <javaModelGenerator targetPackage="cn.com.countrygarden.bi.main.model.phoenix"
                            targetProject="${targetJavaProject}">
            <property name="enableSubPackages" value="true"/>
            <property name="trimStrings" value="true"/>
        </javaModelGenerator>
        <sqlMapGenerator targetPackage="mybatis.mapper.phoenix" targetProject="${targetResourceProject}">
            <property name="enableSubPackages" value="true"/>
        </sqlMapGenerator>
        <javaClientGenerator targetPackage="cn.com.countrygarden.bi.main.dao.phoenix"
                             targetProject="${targetJavaProject}"
                             type="XMLMAPPER">
            <property name="enableSubPackages" value="true"/>
        </javaClientGenerator>

        <!--<table schema="" tableName="phoenix_sales_on_sale_project" domainObjectName="PhoenixSalesOnSaleProject">
            <generatedKey column="id" sqlStatement="mysql" identity="true"/>
        </table>
        <table schema="" tableName="phoenix_sales_on_sale_room" domainObjectName="PhoenixSalesOnSaleRoom">
            <generatedKey column="id" sqlStatement="mysql" identity="true"/>
        </table>-->

        <table schema="" tableName="phoenix_sales_project" domainObjectName="PhoenixSalesProject">
            <generatedKey column="id" sqlStatement="mysql" identity="true"/>
        </table>
        <table schema="" tableName="phoenix_sales_build" domainObjectName="PhoenixSalesBuild">
            <generatedKey column="id" sqlStatement="mysql" identity="true"/>
        </table>
        <table schema="" tableName="phoenix_sales_room" domainObjectName="PhoenixSalesRoom">
            <generatedKey column="id" sqlStatement="mysql" identity="true"/>
        </table>
        <table schema="" tableName="phoenix_sales_customer" domainObjectName="PhoenixSalesCustomer">
            <generatedKey column="id" sqlStatement="mysql" identity="true"/>
        </table>
    </context>
</generatorConfiguration>