sqlmap-config.xml
2.86 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
<?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.diligrp.titan.domain.pop.ProductPop" alias="productPop" />
<typeAlias type="com.diligrp.titan.domain.pop.ProductPopAttr" alias="productPopAttr" />
<typeAlias type="com.diligrp.titan.domain.pop.ProductPopAttrValue" alias="productPopAttrValue" />
<typeAlias type="com.diligrp.titan.domain.pop.ProductSkuPop" alias="productSkuPop"/>
<typeAlias type="com.diligrp.titan.domain.Attribute" alias="attribute" />
<typeAlias type="com.diligrp.titan.domain.AttributeValue" alias="attributeValue" />
<!--供求需求-->
<typeAlias type="com.diligrp.titan.domain.Category" alias="category"/>
<typeAlias type="com.diligrp.titan.domain.CategoryAttr" alias="categoryAttr"/>
<typeAlias type="com.diligrp.titan.domain.CategorySearchAttr" alias="categorySearchAttr"/>
<typeAlias type="com.diligrp.titan.domain.ProductSearchSort" alias="productSearchSort"/>
<typeAlias type="com.diligrp.titan.domain.common.TitanSequence" alias="titanSequence"/>
<typeAlias type="com.diligrp.titan.domain.ProductSku" alias="productSku"/>
<typeAlias type="com.diligrp.titan.domain.ProductAttrValue" alias="productAttrValue"/>
<typeAlias type="com.diligrp.titan.domain.ProductAttr" alias="productAttr"/>
<typeAlias type="com.diligrp.titan.domain.ProductImg" alias="productImg"/>
</typeAliases>
<!-- 映射文件路径 -->
<mappers>
<mapper resource="sqlmap/pop/ProductPop.xml"/>
<mapper resource="sqlmap/pop/ProductPopAttr.xml"/>
<mapper resource="sqlmap/pop/ProductPopAttrValue.xml"/>
<mapper resource="sqlmap/pop/ProductSkuPop.xml"/>
<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/ProductSearchSort.xml"/>
<mapper resource="sqlmap/ProductImg.xml"/>
<mapper resource="sqlmap/SnapshotSku.xml"/>
<mapper resource="sqlmap/TitanSequence.xml" />
</mappers>
</configuration>