<?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:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar"/>-->
    <!-- oracle驱动jar -->
	<classPathEntry location="E:\app\zwk\product\11.2.0\client_2\jdbc\lib\ojdbc5.jar"/>
    <context id="LpckNet" targetRuntime="MyBatis3">
        <property name="suppressTypeWarnings" value="true"/>
        <!--<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"/>-->
        <commentGenerator>
            <property name="suppressDate" value="true"/>
            <property name="suppressAllComments" value="true"/>
        </commentGenerator>
		<!-- oracle 数据库,用户名,密码 -->
        <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"
                        connectionURL="jdbc:oracle:thin:@10.9.1.170:1521/lbepc"
                        userId="xdfzx"
                        password="xdf123">
        </jdbcConnection>
        <javaTypeResolver>
            <property name="forceBigDecimals" value="false"/>
        </javaTypeResolver>
		<!-- 实体类所在的包 -->
        <javaModelGenerator targetPackage="com.xdfzx.model" targetProject="src/main/java">
            <property name="enableSubPackages" value="true"/>
            <property name="trimStrings" value="true"/>
            <!--<property name="rootClass" value="com.gaokb.part.model.BaseModel"/>-->
        </javaModelGenerator>
		<!-- 映射xml所在的包 -->
        <sqlMapGenerator targetPackage="com.xdfzx.dao" targetProject="src/main/resources">
            <property name="enableSubPackages" value="true"/>
        </sqlMapGenerator>
		<!-- mapper接口类所在的包 -->
        <javaClientGenerator type="XMLMAPPER" targetPackage="com.xdfzx.dao"
                             targetProject="src/main/java">
            <property name="enableSubPackages" value="true"/>
            <!--<property name="rootInterface" value="com.gaokb.part.dao.BaseMapper"/>-->
        </javaClientGenerator>
		<!-- 数据库表名与实体类名 -->
        <table schema="" tableName="CLIENT" domainObjectName="Client"
               enableCountByExample="false" enableUpdateByExample="false"
               enableDeleteByExample="false" enableSelectByExample="false"
               selectByExampleQueryId="false">
        </table>

    </context>
</generatorConfiguration>

  

posted on 2019-07-11 11:17  lazyli  阅读(581)  评论(0编辑  收藏  举报