sqlmap-config.xml
3.31 KB
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 configuration PUBLIC "-//ibatis.apache.org//DTD Config 3.0//EN" "http://ibatis.apache.org/dtd/ibatis-3-config.dtd">
<configuration>
<settings>
<!-- 全局映射器启用缓存 -->
<setting name="cacheEnabled" value="true" />
<!-- 对于未知的SQL查询,允许返回不同的结果集以达到通用的效果 -->
<setting name="multipleResultSetsEnabled" value="true" />
<!-- 允许使用列标签代替列名 -->
<setting name="useColumnLabel" value="true" />
<!-- 数据库超过25000秒仍未响应则超时 -->
<setting name="defaultStatementTimeout" value="25000" />
</settings>
<!-- 全局别名设置,在映射文件中只需写别名,而不必写出整个类路径 -->
<typeAliases>
<typeAlias type="com.dili.titan.domain.Attribute" alias="attribute" />
<typeAlias type="com.dili.titan.domain.AttributeValue" alias="attributeValue" />
<typeAlias type="com.dili.titan.domain.Category" alias="category" />
<typeAlias type="com.dili.titan.domain.CategoryAttr" alias="categoryAttr" />
<typeAlias type="com.dili.titan.domain.CategorySeo" alias="categorySeo" />
<typeAlias type="com.dili.titan.domain.ProductTemplete" alias="productTemplete" />
<typeAlias type="com.dili.titan.domain.ProductAttr" alias="productAttr" />
<typeAlias type="com.dili.titan.domain.ProductAttrValue" alias="productAttrValue" />
<typeAlias type="com.dili.titan.domain.ProductImg" alias="productImg" />
<typeAlias type="com.dili.titan.domain.ProductPop" alias="productPop" />
<typeAlias type="com.dili.titan.domain.ProductSkuPop" alias="productSkuPop" />
<typeAlias type="com.dili.titan.domain.Templete" alias="templete" />
<typeAlias type="com.dili.titan.domain.SystemConfigure" alias="systemConfigure" />
<typeAlias type="com.dili.titan.domain.common.TitanSequence" alias="titanSequence" />
<typeAlias type="com.dili.titan.domain.ProductSku" alias="productSku" />
<typeAlias type="com.dili.titan.domain.ProductPopAttr" alias="productPopAttr" />
<typeAlias type="com.dili.titan.domain.ProductPopAttrValue" alias="productPopAttrValue" />
<typeAlias type="com.dili.titan.domain.CategoryTemplete" alias="categoryTemplete" />
<typeAlias type="com.dili.titan.domain.Image" alias="image" />
<typeAlias type="com.dili.titan.domain.ProductSearchSort" alias="productSearchSort" />
<typeAlias type="com.dili.titan.domain.ProductSearchCate" alias="productSearchCate" />
<!--供求需求-->
</typeAliases>
<!-- 映射文件路径 -->
<mappers>
<mapper resource="sqlmap/Attribute.xml" />
<mapper resource="sqlmap/AttributeValue.xml" />
<mapper resource="sqlmap/Category.xml" />
<mapper resource="sqlmap/CategoryAttr.xml" />
<mapper resource="sqlmap/CategorySearchAttr.xml" />
<mapper resource="sqlmap/CategorySeo.xml" />
<mapper resource="sqlmap/ProductPopAttr.xml" />
<mapper resource="sqlmap/ProductPopAttrValue.xml" />
<mapper resource="sqlmap/ProductImg.xml" />
<mapper resource="sqlmap/ProductPop.xml" />
<mapper resource="sqlmap/ProductSkuPop.xml" />
<mapper resource="sqlmap/SystemConfigure.xml" />
<mapper resource="sqlmap/TitanSequence.xml" />
<mapper resource="sqlmap/SnapshotSku.xml" />
<mapper resource="sqlmap/Image.xml" />
<mapper resource="sqlmap/ProductSearchSort.xml"/>
<mapper resource="sqlmap/ProductSearchCate.xml"/>
</mappers>
</configuration>