forked from yourkevin/NiterForum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generatorConfig.xml
50 lines (40 loc) · 2.22 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
<?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="DB2Tables" targetRuntime="MyBatis3">
<plugin type="org.mybatis.generator.plugins.RowBoundsPlugin"></plugin>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://***:3306/community"
userId="***"
password="****">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false"/>
</javaTypeResolver>
<javaModelGenerator targetPackage="cn.niter.forum.model" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources">
<property name="enableSubPackages" value="true"/>
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER" targetPackage="cn.niter.forum.mapper"
targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
</javaClientGenerator>
<table tableName="user" domainObjectName="User"></table>
<table tableName="question" domainObjectName="Question"></table>
<table tableName="comment" domainObjectName="Comment"></table>
<table tableName="notification" domainObjectName="Notification"></table>
<table tableName="thumb" domainObjectName="Thumb"></table>
<table tableName="ad" domainObjectName="Ad"></table>
<table tableName="user_info" domainObjectName="UserInfo"></table>
<table tableName="user_account" domainObjectName="UserAccount"></table>
<table tableName="news" domainObjectName="News">
<columnOverride column="description" javaType="java.lang.String" jdbcType="VARCHAR" />
<columnOverride column="html" javaType="java.lang.String" jdbcType="VARCHAR" />
</table>
</context>
</generatorConfiguration>