sqlmap-config.xml 2.86 KB
<?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>