forked from pumadong/cl-commodity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_commodity.xml
72 lines (59 loc) · 6.13 KB
/
config_commodity.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
<?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/commodity" userId="root" password="123456">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<!-- targetProject:自动生成代码的位置 -->
<!-- 生成Model -->
<javaModelGenerator targetPackage="com.cl.commodity.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.commodity.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.commodity.mapper" targetProject="CreateResult" type="XMLMAPPER">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<!--<ignoreColumn column="被忽略的字段的名字" />-->
<table tableName="c_brand" domainObjectName="Brand" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_category" domainObjectName="Category" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_category_brand" domainObjectName="CategoryBrandRef" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_prop_item" domainObjectName="PropItem" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_prop_value" domainObjectName="PropValue" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_category_prop_item" domainObjectName="CategoryPropItemRef" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_category_prop_value" domainObjectName="CategoryPropValueRef" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_commodity" domainObjectName="Commodity" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_product" domainObjectName="Product" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_commodity_picture" domainObjectName="CommodityPicture" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_commodity_prop" domainObjectName="CommodityProp" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_commodity_log" domainObjectName="CommodityLog" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_commodity_price_log" domainObjectName="CommodityPriceLog" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_sizechart" domainObjectName="Sizechart" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_sizechart_category_brand" domainObjectName="SizechartCategoryBrandRef" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
<table tableName="c_dictionary" domainObjectName="Dictionary" enableDeleteByExample = "false" enableCountByExample = "false" enableUpdateByExample = "false" enableSelectByExample = "false" selectByExampleQueryId = "false" />
</context>
</generatorConfiguration>