generatorConfigEclipse.xml 2.1 KB
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
<?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>
  <!-- See: http://www.mybatis.org/generator/configreference/commentGenerator.html -->
  <properties resource="generator.properties" />
  <!-- <classPathEntry location="../hsqldb/hsqldb-2.3.5.jar" /> -->
  <context id="contextId" targetRuntime="MyBatis3">
  	<property name="autoDelimitKeywords" value="true" />
    <property name="javaFileEncoding" value="UTF-8" />
    <plugin type="org.mybatis.generator.plugins.MapperAnnotationPlugin" />
    <plugin type="org.mybatis.generator.plugins.RowBoundsPlugin" />
    <plugin type="org.mybatis.generator.plugins.ToStringPlugin" />
    <plugin type="org.mybatis.generator.plugins.SerializablePlugin" />
    <commentGenerator>
      <property name="suppressDate" value="true" />
      <property name="addRemarkComments" value="true" />
    </commentGenerator>
    <jdbcConnection driverClass="${jdbc.driverClass}" connectionURL="${jdbc.connectionURL}" userId="${jdbc.userId}" password="${jdbc.password}">
    </jdbcConnection>

    <javaTypeResolver>
      <property name="forceBigDecimals" value="false" />
    </javaTypeResolver>

    <javaModelGenerator targetPackage="pwc.taxtech.atms.entitiy" targetProject="atms-api/src/main/java">
      <property name="trimStrings" value="true" />
    </javaModelGenerator>

    <sqlMapGenerator targetPackage="pwc.taxtech.atms.dao" targetProject="atms-api/src/main/resources">
    </sqlMapGenerator>

    <javaClientGenerator type="XMLMAPPER" targetPackage="pwc.taxtech.atms.dao" targetProject="atms-api/src/main/java">
      <property name="rootInterface" value="pwc.taxtech.atms.MyMapper" />
    </javaClientGenerator>
    
    <!-- Area/AreaRegion/Region -->
	<table schema="dbo" tableName="OperationLogBasicData" domainObjectName="OperationLogBasicData">
      <property name="useActualColumnNames" value="true" />
      <property name="ignoreQualifiersAtRuntime" value="true"/>
    </table>
  </context>
</generatorConfiguration>