-
Notifications
You must be signed in to change notification settings - Fork 59
/
config_purchase.xml
65 lines (52 loc) · 4.96 KB
/
config_purchase.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
<?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/purchase" userId="root" password="123456">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<!-- targetProject:自动生成代码的位置 -->
<!-- 生成Model -->
<javaModelGenerator targetPackage="com.cl.purchase.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.purchase.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.purchase.mapper" targetProject="CreateResult" type="XMLMAPPER">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<!--<ignoreColumn column="被忽略的字段的名字" />-->
<table tableName="p_supplier" domainObjectName="Supplier" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="p_contract" domainObjectName="Contract" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="p_supplier_brand" domainObjectName="SupplierBrandRef" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="p_supplier_category" domainObjectName="SupplierCategoryRef" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="p_purchase_form" domainObjectName="PurchaseForm" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="p_purchase_detail" domainObjectName="PurchaseDetail" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="p_deliver_form" domainObjectName="DeliverForm" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="p_deliver_detail" domainObjectName="DeliverDetail" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="p_backtrack_form" domainObjectName="BacktrackForm" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="p_backtrack_detail" domainObjectName="BacktrackDetail" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="p_dictionary" domainObjectName="Dictionary" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
</context>
</generatorConfiguration>