-
Notifications
You must be signed in to change notification settings - Fork 0
/
generatorConfig.xml
72 lines (65 loc) · 3.27 KB
/
generatorConfig.xml
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
66
67
68
69
70
71
72
<?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>
<!-- 注意以下标签的顺序:property*,plugin*,commentGenerator?,jdbcConnection, javaTypeResolver?,javaModelGenerator,sqlMapGenerator?,
javaClientGenerator?,table+ -->
<context id="context2">
<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin" />
<commentGenerator>
<property name="suppressDate" value="true" />
<property name="suppressAllComments" value="true" />
</commentGenerator>
<!-- 注意先后顺序。上面去除注释的配置要放在数据库配置的前面,不然会报错 -->
<jdbcConnection connectionURL="jdbc:mysql://172.29.28.4:3306/idp"
driverClass="com.mysql.jdbc.Driver" password="devops" userId="devops" />
<javaModelGenerator targetPackage="com.ybear.blockchain.dao.model"
targetProject="blockchain-backend">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<sqlMapGenerator targetPackage="com.ybear.blockchain.dao.mapper"
targetProject="blockchain-backend">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<javaClientGenerator type="ANNOTATEDMAPPER"
targetPackage="com.ybear.blockchain.dao.si" targetProject="blockchain-backend">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<table tableName="login_user">
</table>
<table tableName="user_role"></table>
<table tableName="real_name_apply"></table>
<table tableName="password_change_history"
enableDeleteByExample="false" enableDeleteByPrimaryKey="false"
enableUpdateByExample="false" enableUpdateByPrimaryKey="false"></table>
</context>
<context id="context1">
<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin" />
<commentGenerator>
<property name="suppressDate" value="true" />
<property name="suppressAllComments" value="true" />
</commentGenerator>
<!-- 注意先后顺序。上面去除注释的配置要放在数据库配置的前面,不然会报错 -->
<jdbcConnection connectionURL="jdbc:mysql://172.29.28.4:3306/dzj"
driverClass="com.mysql.jdbc.Driver" password="devops" userId="devops" />
<javaModelGenerator targetPackage="com.ybear.blockchain.dao.model"
targetProject="blockchain-backend">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<sqlMapGenerator targetPackage="com.ybear.blockchain.dao.mapper"
targetProject="blockchain-backend">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<javaClientGenerator type="ANNOTATEDMAPPER"
targetPackage="com.ybear.blockchain.dao.si" targetProject="blockchain-backend">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<table tableName="b_login_log" domainObjectName="LoginLog"
enableDeleteByExample="false" enableDeleteByPrimaryKey="false"
enableUpdateByExample="false" enableUpdateByPrimaryKey="false">
</table>
<table tableName="b_user" domainObjectName="UserInfo"></table>
<table tableName="b_books" domainObjectName="BookInfo"></table>
</context>
</generatorConfiguration>