sms-generator.xml
4.05 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?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>
<!-- Class Driver Path -->
<classPathEntry location="/Users/ming/.m2/repository/mysql/mysql-connector-java/5.1.36/mysql-connector-java-5.1.36.jar"/>
<context id="context" targetRuntime="MyBatis3">
<commentGenerator>
<!-- This property is used to specify whether MBG will include any coments in the generated code -->
<property name="suppressAllComments" value="false"/>
<!-- This property is used to specify whether MBG will include the generation timestamp in the generated comments -->
<property name="suppressDate" value="true"/>
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/yoho_sms" userId="root" password=""/>
<javaTypeResolver>
<!-- This property is used to specify whether MyBatis Generator should force the use of java.math.BigDecimal
for DECIMAL and NUMERIC fields, rather than substituting integral types when possible -->
<property name="forceBigDecimals" value="false"/>
</javaTypeResolver>
<javaModelGenerator targetPackage="com.yoho.yhmessage.dal.model" targetProject="src">
<!-- This property is used to select whether MyBatis Generator will generate different Java packages for
the objects based on the catalog and schema of the introspected table -->
<property name="enableSubPackages" value="false"/>
<!-- This property is used to select whether MyBatis Generator adds code to trim the white space from character fields returned from the database -->
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<sqlMapGenerator targetPackage="META-INF/mybatis" targetProject="src">
<!-- This property is used to select whether MyBatis Generator will generate different Java packages for
the objects based on the catalog and schema of the introspected table -->
<property name="enableSubPackages" value="false"/>
</sqlMapGenerator>
<javaClientGenerator targetPackage="com.yoho.yhmessage.dal" targetProject="src" type="XMLMAPPER">
<!-- This property is used to select whether MyBatis Generator will generate different Java packages for
the objects based on the catalog and schema of the introspected table -->
<property name="enableSubPackages" value="false"/>
</javaClientGenerator>
<table tableName="black_list" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
enableUpdateByExample="false"/>
<table tableName="email_black_list" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
enableUpdateByExample="false"/>
<table tableName="email_log" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
enableUpdateByExample="false"/>
<table tableName="email_template" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
enableUpdateByExample="false"/>
<table tableName="log" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
enableUpdateByExample="false"/>
<table tableName="template" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
enableUpdateByExample="false"/>
<table tableName="user" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
enableUpdateByExample="false"/>
<table tableName="user_new" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
enableUpdateByExample="false"/>
</context>
</generatorConfiguration>