db.xml
2.34 KB
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
45
46
47
48
49
<?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="F:\maven_repo\mysql\mysql-connector-java\5.1.32\mysql-connector-java-5.1.32.jar" />
<context id="MysqlContext" targetRuntime="MyBatis3" defaultModelType="flat">
<property name="beginningDelimiter" value="`"/>
<property name="endingDelimiter" value="`"/>
<property name="javaFileEncoding" value="UTF-8"/>
<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>
<plugin type="org.mybatis.generator.plugins.SerializablePlugin"></plugin>
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
<commentGenerator type="cn.runsa.test.mybatis.codegen.CustomCommentGenerator">
<property name="suppressDate" value="true"/>
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/new_crm"
userId="root"
password="">
</jdbcConnection>
<javaModelGenerator targetPackage="cn.runsa.crmapp.coupon.entity" targetProject="F:\work\crm_branch\crm-coupon\src\main\java">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<sqlMapGenerator targetPackage="mybatis.xml.coupon" targetProject="F:\work\crm_branch\crm-coupon\src\main\resources">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER" targetPackage="cn.runsa.crmapp.coupon.mapper" targetProject="F:\work\crm_branch\crm-coupon\src\main\java">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<table tableName="crm_coupon_rule" domainObjectName="CouponRule"
enableCountByExample="false" enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false"
selectByExampleQueryId="false">
<generatedKey column="CPL_ID" sqlStatement="Mysql"/>
</table>
</context>
</generatorConfiguration>