-
Notifications
You must be signed in to change notification settings - Fork 0
/
mybatis_web_generate.backend.xml
executable file
·38 lines (36 loc) · 2.39 KB
/
mybatis_web_generate.backend.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
<?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="mysql-connector-java-5.1.23.jar" />
<context id="MySQLTables" targetRuntime="MyBatis3" defaultModelType ="flat">
<commentGenerator>
<property name="suppressDate" value="true" />
<property name="suppressAllComments" value="true" />
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://rm-bp141lm1i942183l1o.mysql.rds.aliyuncs.com:3306/cloud_radio?useUnicode=true&characterEncoding=utf8&autoReconnect=true&rewriteBatchedStatements=TRUE&allowMultiQueries=true"
userId="zhidian_regulus" password="Weker#regulus2016" >
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<javaModelGenerator targetPackage="com.youzan.wechat.dal.model" targetFilename="MediaPlatformDO" targetProject="/Users/alan/Workspace/youzan/wechat-center/wechat-center-dal/src/main/java/com/youzan/wechat/dal/model">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
<property name="enableComments" value="true" />
<property name="ignoreSetterAndGetter" value="true" />
</javaModelGenerator>
<sqlMapGenerator targetPackage="mapper" targetProject="/Users/alan/Workspace/youzan/wechat-center/wechat-center-dal/src/main/resources">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER" targetPackage="com.youzan.wechat.dal.dao" targetFilename="MediaPlatformDao" targetProject="/Users/alan/Workspace/youzan/wechat-center/wechat-center-dal/src/main/java">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<!-- <table tableName="%" /> -->
<table tableName="user_mp" domainObjectName="MediaPlatform" enableCountByExample="false"
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"/>
</context>
</generatorConfiguration>
<!-- java -jar mybatis-generator-core-1.3.3-SNAPSHOT.jar -configfile mybatis_web_generate.xml -overwrite -->