forked from pumadong/cl-order
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_order.xml
67 lines (54 loc) · 5.31 KB
/
config_order.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
<?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:数据库的JDBC驱动,换成你自己的驱动位置 -->
<classPathEntry location="mysql-connector-java-5.1.24-bin.jar" />
<context id="DB2Tables" targetRuntime="MyBatis3">
<commentGenerator>
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
<property name="suppressAllComments" value="true" />
<!-- 此属性用于指定在生成的注释是否将包括MBG代时间戳 -->
<property name="suppressDate" value="true" />
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/order" userId="root" password="123456">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<!-- targetProject:自动生成代码的位置 -->
<!-- 生成Model -->
<javaModelGenerator targetPackage="com.cl.order.model" targetProject="CreateResult">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="true" />
<!-- 是否针对string类型的字段在set的时候进行trim调用 -->
<property name="trimStrings" value="false" />
</javaModelGenerator>
<!-- 生成Mapper.xml -->
<sqlMapGenerator targetPackage="com.cl.order.mapper" targetProject="CreateResult">
<property name="enableSubPackages" value="true" />
<property name="enableDeleteByExample" value="false" />
<property name="enableCountByExample" value="false" />
<property name="enableUpdateByExample" value="false" />
<property name="enableSelectByExample" value="false" />
<property name="selectByExampleQueryId" value="false" />
</sqlMapGenerator>
<!-- 生成Mapper.java -->
<javaClientGenerator targetPackage="com.cl.order.mapper" targetProject="CreateResult" type="XMLMAPPER">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<!--<ignoreColumn column="被忽略的字段的名字" />-->
<table tableName="o_order_main_form" domainObjectName="OrderMainForm" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_order_main_detail" domainObjectName="OrderMainDetail" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_order_form" domainObjectName="OrderForm" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_order_detail" domainObjectName="OrderDetail" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_order_payment" domainObjectName="OrderPayment" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_order_log" domainObjectName="OrderLog" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_accept_form" domainObjectName="AcceptForm" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_accept_detail" domainObjectName="AcceptDetail" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_accept_log" domainObjectName="AcceptLog" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_return_payment" domainObjectName="ReturnPayment" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_refund_form" domainObjectName="RefundForm" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_refund_log" domainObjectName="RefundLog" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="o_dictionary" domainObjectName="Dictionary" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
</context>
</generatorConfiguration>