forked from aofeng/JavaTutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgneratorConfig.xml
More file actions
65 lines (62 loc) · 2.86 KB
/
gneratorConfig.xml
File metadata and controls
65 lines (62 loc) · 2.86 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
64
65
<?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>
<context id="context1">
<commentGenerator>
<!-- 指定是否自动生成注释 true:不生成, false:生成 -->
<property name="suppressAllComments" value="true"/>
<!-- 是否用表和列的注释生成实体类和字段的注释。注:如果suppressAllComments设置为true,则忽略此配置选项 -->
<property name="addRemarkComments" value="true"/>
</commentGenerator>
<jdbcConnection connectionURL="jdbc:mysql://192.168.56.102:19816/ucgc_monit?useUnicode=true&characterEncoding=UTF8"
driverClass="com.mysql.jdbc.Driver"
userId="uzone"
password="uzone">
</jdbcConnection>
<!-- 存放实体类的package -->
<javaModelGenerator targetPackage="cn.aofeng.demo.mybatis.entity"
targetProject="JavaTutorial/src" />
<!-- 存放SQL语句和结构映射配置文件的package -->
<sqlMapGenerator targetPackage="cn.aofeng.demo.mybatis.mapper"
targetProject="JavaTutorial/src" />
<!-- 存放DAO类的package -->
<javaClientGenerator targetPackage="cn.aofeng.demo.mybatis.dao"
targetProject="JavaTutorial/src" type="XMLMAPPER" />
<table schema="ucgc_monit" tableName="monit_contact"
modelType="flat"
enableCountByExample="false"
enableDeleteByExample="false"
enableSelectByExample="false"
enableUpdateByExample="false"></table>
<table schema="ucgc_monit" tableName="monit_item"
modelType="flat"
enableCountByExample="false"
enableDeleteByExample="false"
enableSelectByExample="false"
enableUpdateByExample="false"></table>
<table schema="ucgc_monit" tableName="monit_notify_history"
modelType="flat"
enableCountByExample="false"
enableDeleteByExample="false"
enableSelectByExample="false"
enableUpdateByExample="false"></table>
<table schema="ucgc_monit" tableName="monit_notify_item"
modelType="flat"
enableCountByExample="false"
enableDeleteByExample="false"
enableSelectByExample="false"
enableUpdateByExample="false"></table>
<table schema="ucgc_monit" tableName="monit_stat"
modelType="flat"
enableCountByExample="false"
enableDeleteByExample="false"
enableSelectByExample="false"
enableUpdateByExample="false"></table>
<table schema="ucgc_monit" tableName="monit_threshold"
modelType="flat"
enableCountByExample="false"
enableDeleteByExample="false"
enableSelectByExample="false"
enableUpdateByExample="false"></table>
</context>
</generatorConfiguration>