| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?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>
- <!-- 引入配置文件 -->
- <properties resource="mybatis-generator.properties"/>
- <!-- 指定数据连接驱动jar地址 -->
- <classPathEntry location="${generator.classPath}"/>
- <!-- 一个数据库一个context -->
- <context id="BuildingTables" targetRuntime="Mybatis3">
- <!-- defaultModelType="hierarchical" -->
- <property name="javaFileEncoding" value="UTF-8"/>
- <property name="suppressTypeWarnings" value="true"/>
- <property name="useActualColumnNames" value="false"/>
- <!-- 注释 -->
- <commentGenerator type="cn.com.goldenwater.dcproj.utils.CommentGenerator">
- <!-- 是否去除自动生成的注释 true:是 : false:否 -->
- <property name="suppressAllComments" value="true"/>
- <property name="suppressDate" value="true"/>
- <property name="addRemarkComments" value="true"/>
- </commentGenerator>
- <!-- jdbc连接 -->
- <jdbcConnection driverClass="${jdbc.driverClassName}"
- connectionURL="${jdbc.url}" userId="${jdbc.username}" password="${jdbc.password}">
- <!-- 设置可以获取 tables remarks信息 -->
- <property name="useInformationSchema" value="true"/>
- <!-- 设置可以获取 remarks信息 -->
- <property name="remarks" value="true"/>
- </jdbcConnection>
- <!-- 类型转换 -->
- <javaTypeResolver>
- <!-- 是否使用bigDecimal, false可自动转化以下类型(Long, Integer, Short, etc.) -->
- <property name="forceBigDecimals" value="false"/>
- </javaTypeResolver>
- <!-- 生成实体类地址 -->
- <javaModelGenerator targetPackage="${generator.domainPackage}"
- targetProject="${generator.targetProject}/src/main/java">
- <!-- 是否在当前路径下新加一层schema,eg:fase路径com.oop.eksp.user.model, true:com.oop.eksp.user.model.[schemaName] -->
- <property name="enableSubPackages" value="true"/>
- <!-- 是否针对string类型的字段在set的时候进行trim调用 -->
- <property name="trimStrings" value="true"/>
- <property name="defaultModelType" value="flat"/>
- </javaModelGenerator>
- <!-- 生成mapxml文件 -->
- <sqlMapGenerator targetPackage="${generator.mapperPackage}"
- targetProject="${generator.targetProject}/src/main/resources">
- <!-- 是否在当前路径下新加一层schema,eg:fase路径com.oop.eksp.user.model, true:com.oop.eksp.user.model.[schemaName] -->
- <property name="enableSubPackages" value="true"/>
- </sqlMapGenerator>
- <!-- 生成mapxml对应client,也就是接口dao -->
- <javaClientGenerator targetPackage="${generator.daoPackage}"
- targetProject="${generator.targetProject}/src/main/java" type="XMLMAPPER">
- <!-- 是否在当前路径下新加一层schema,eg:fase路径com.oop.eksp.user.model, true:com.oop.eksp.user.model.[schemaName] -->
- <property name="enableSubPackages" value="true"/>
- </javaClientGenerator>
- <!-- 配置表信息 -->
- <!-- <table tableName="JG_ZTK_JGXN_SSJYGK_SPOT_CHECK" domainObjectName="JgZTKSpotCheck"
- enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
- enableSelectByExample="false" selectByExampleQueryId="false"/>
- <table tableName="JG_ZTK_JGXN_SSJYGK_ZXJHSJ" domainObjectName="JgZTKZxjhsj"
- enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
- enableSelectByExample="false" selectByExampleQueryId="false"/>
- -->
- <table tableName="CHK_SAFE_PROD_LEDGER" domainObjectName="chkSafeProdLedger"
- enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
- enableSelectByExample="false" selectByExampleQueryId="false"/>
- </context>
- </generatorConfiguration>
|