-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
generatorConfig-business.xml
96 lines (83 loc) · 4.45 KB
/
generatorConfig-business.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?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="caigouTables" targetRuntime="MyBatis3">
<commentGenerator>
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
<property name="suppressAllComments" value="true"/>
</commentGenerator>
<!--数据库连接的信息:驱动类、连接地址、用户名、密码 -->
<!-- <jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/uni" userId="root"
password="mysql">
</jdbcConnection> -->
<jdbcConnection driverClass="oracle.jdbc.OracleDriver"
connectionURL="jdbc:oracle:thin:@127.0.0.1:1521:yycg"
userId="yycg"
password="yycg">
</jdbcConnection>
<!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer true,把JDBC DECIMAL 和
NUMERIC 类型解析为java.math.BigDecimal -->
<javaTypeResolver>
<property name="forceBigDecimals" value="false"/>
</javaTypeResolver>
<!-- targetProject:自动生成代码的位置 -->
<javaModelGenerator targetPackage="yycg.business.pojo.po"
targetProject=".\src">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false"/>
<!-- 从数据库返回的值被清理前后的空格 -->
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<!-- targetPackage:mapper映射文件生成的位置 -->
<sqlMapGenerator targetPackage="yycg.business.dao.mapper"
targetProject=".\src">
<property name="enableSubPackages" value="false"/>
</sqlMapGenerator>
<!-- targetPackage:mapper接口的生成位置 -->
<javaClientGenerator type="XMLMAPPER"
targetPackage="yycg.business.dao.mapper"
targetProject=".\src">
<property name="enableSubPackages" value="false"/>
</javaClientGenerator>
<!-- <table schema="" tableName="useryy" />
<table schema="" tableName="userjd" />
<table schema="" tableName="usergys" /> -->
<!-- <table schema="" tableName="ypxx" >
指定字段生成类型
<columnOverride column="zbjg" javaType="java.lang.Float" />
</table> -->
<!-- <table schema="" tableName="gysypml" />
<table schema="" tableName="gysypml_control" /> -->
<!-- <table schema="" tableName="yyypml" /> -->
<!--
<table schema="" tableName="yycgd" >
</table>
<table schema="" tableName="yycgdmx" >
<columnOverride column="zbjg" javaType="java.lang.Float" />
<columnOverride column="jyjg" javaType="java.lang.Float" />
<columnOverride column="cgl" javaType="java.lang.Integer" />
<columnOverride column="cgje" javaType="java.lang.Float" />
</table> -->
<!-- <table schema="" tableName="yycgdrk" >
<columnOverride column="rkje" javaType="java.lang.Float" />
<columnOverride column="ypyxq" javaType="java.lang.Float" />
<columnOverride column="rkl" javaType="java.lang.Integer" />
</table> -->
<table schema="" tableName="yybusiness">
<columnOverride column="zbjg" javaType="java.lang.Float"/>
<columnOverride column="jyjg" javaType="java.lang.Float"/>
<columnOverride column="cgl" javaType="java.lang.Integer"/>
<columnOverride column="cgje" javaType="java.lang.Float"/>
<columnOverride column="rkje" javaType="java.lang.Float"/>
<columnOverride column="ypyxq" javaType="java.lang.Float"/>
<columnOverride column="rkl" javaType="java.lang.Integer"/>
<columnOverride column="thje" javaType="java.lang.Float"/>
<columnOverride column="thl" javaType="java.lang.Integer"/>
<columnOverride column="jsje" javaType="java.lang.Float"/>
<columnOverride column="jsl" javaType="java.lang.Integer"/>
</table>
</context>
</generatorConfiguration>