<?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="E:\work\repository\mysql\mysql-connector-java\5.1.31\mysql-connector-java-5.1.31.jar" />
<!--      <classPathEntry location="/Users/jeng/.m2/repository/mysql/mysql-connector-java/5.1.31/mysql-connector-java-5.1.31.jar" /> -->

    <context id="context1"
             targetRuntime="com.xmomen.maven.plugins.mybatis.generator.context.IntrospectedTableMyBatis3ImplExt">

        <plugin type="com.xmomen.maven.plugins.mybatis.generator.plugins.ModelAnnotationPlugin" />
        <plugin type="com.xmomen.maven.plugins.mybatis.generator.plugins.MapperGeneratorPlugin">
            <property name="rootInterface" value="com.xmomen.framework.mybatis.mapper.MybatisMapper"/>
        </plugin>
        <plugin type="com.xmomen.maven.plugins.mybatis.generator.plugins.ModelExamplePlugin" >
            <property name="rootClass" value="com.xmomen.framework.mybatis.model.BaseMybatisExample" />
        </plugin>
        <plugin type="com.xmomen.maven.plugins.mybatis.generator.plugins.MapperSqlMapGeneratorPlugin" />
        <plugin type="com.xmomen.maven.plugins.mybatis.generator.plugins.PrimaryKeyGeneratorPlugin" />
        <commentGenerator>
            <property name="suppressAllComments" value="true" />
            <property name="suppressDate" value="true" />
        </commentGenerator>

        <jdbcConnection driverClass="com.mysql.jdbc.Driver"
                        connectionURL="jdbc:mysql://121.40.156.26:3306/dms_dev?useUnicode=true&amp;characterEncoding=UTF-8"
                        userId="root" password="fuckyoumysql" />

        <javaTypeResolver type="com.xmomen.maven.plugins.mybatis.generator.plugins.types.JavaTypeResolverDefaultImplExt"></javaTypeResolver>

        <javaModelGenerator targetPackage="com.xmomen.module.order.entity"
                            targetProject="./src/main/java" >
            <property name="rootClass" value="com.xmomen.framework.mybatis.model.BaseMybatisModel" />
        </javaModelGenerator>

        <sqlMapGenerator targetPackage="com.xmomen.module.order.entity.mapper"
                         targetProject="./src/main/resources" />
        <javaClientGenerator targetPackage="com.xmomen.module.order.entity.mapper"
                             targetProject="./src/main/java" type="XMLMAPPER" >
        </javaClientGenerator>
        <!--    用户模块    -->
        <table tableName="tb_return_order" />
    </context>
</generatorConfiguration>
