sqlmap-config.xml 4.87 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.dili.titan.domain.gq.Purchase" alias="purchase" />
		<typeAlias type="com.dili.titan.domain.gq.Supply" alias="supply" />
        <typeAlias type="com.dili.titan.domain.gq.Presale" alias="presale" />

		<typeAlias type="com.dili.titan.domain.pop.ProductPop" alias="productPop" />
		<typeAlias type="com.dili.titan.rest.domain.input.PopProductSearchInput" alias="popProductSearchInput" />
		<typeAlias type="com.dili.titan.domain.pop.ProductPopAttr" alias="productPopAttr" />
		<typeAlias type="com.dili.titan.domain.pop.ProductPopAttrValue" alias="productPopAttrValue" />
		<typeAlias type="com.dili.titan.domain.pop.ProductPopAudit" alias="productPopAudit" />
		<typeAlias type="com.dili.titan.domain.pop.ProductPopPriceRange" alias="productPopPriceRange" />
        <typeAlias type="com.dili.titan.domain.pop.ProductSkuPop" alias="productSkuPop"/>

        <typeAlias type="com.dili.titan.domain.Attribute" alias="attribute" />
        <typeAlias type="com.dili.titan.domain.AttributeValue" alias="attributeValue" />

         <!--供求需求-->
        <typeAlias type="com.dili.titan.domain.Auth" alias="auth" />
        <typeAlias type="com.dili.titan.domain.AuthScope" alias="authScope" />
        <typeAlias type="com.dili.titan.domain.Category" alias="category"/>
        <typeAlias type="com.dili.titan.domain.CategoryAttr" alias="categoryAttr"/>
        <typeAlias type="com.dili.titan.domain.CategorySearchAttr" alias="categorySearchAttr"/>
        <typeAlias type="com.dili.titan.domain.IndexCategory" alias="indexCategory"/>
        <typeAlias type="com.dili.titan.domain.ProductAuth" alias="productAuth"/>
        <typeAlias type="com.dili.titan.domain.ProductComment" alias="productComment"/>
        <typeAlias type="com.dili.titan.domain.ProductImg" alias="productImg"/>
        <typeAlias type="com.dili.titan.domain.ProductSearchSort" alias="productSearchSort"/>
        <typeAlias type="com.dili.titan.domain.Stock" alias="stock"/>
        <typeAlias type="com.dili.titan.domain.common.TitanSequence" alias="titanSequence"/>
        <typeAlias type="com.dili.titan.domain.Video" alias="video"/>
        <typeAlias type="com.dili.titan.domain.ProductSku" alias="productSku"/>
        <typeAlias type="com.dili.titan.domain.ProductAttrValue" alias="productAttrValue"/>
        <typeAlias type="com.dili.titan.domain.ProductAttr" alias="productAttr"/>
        <typeAlias type="com.dili.titan.domain.ProductVideo" alias="productVideo"/>
        <typeAlias type="com.dili.titan.domain.ProductPopGroupBuying" alias="productPopGroupBuying"/>
        <typeAlias type="com.dili.titan.domain.ProductSample" alias="productSample"/>
	</typeAliases>

	<!-- 映射文件路径 -->
	<mappers>
        <mapper resource="sqlmap/gq/Purchase.xml"/>
        <mapper resource="sqlmap/gq/Supply.xml"/>
        <mapper resource="sqlmap/gq/Presale.xml"/>

        <mapper resource="sqlmap/pop/ProductPop.xml"/>
        <mapper resource="sqlmap/pop/ProductPopAttr.xml"/>
        <mapper resource="sqlmap/pop/ProductPopAttrValue.xml"/>
        <mapper resource="sqlmap/pop/ProductPopAudit.xml"/>
        <mapper resource="sqlmap/pop/ProductPopPriceRange.xml"/>
        <mapper resource="sqlmap/pop/ProductSkuPop.xml"/>

        <mapper resource="sqlmap/Attribute.xml"/>
		<mapper resource="sqlmap/AttributeValue.xml" />
		<mapper resource="sqlmap/Auth.xml" />
		<mapper resource="sqlmap/AuthScope.xml" />
		<mapper resource="sqlmap/Category.xml" />
		<mapper resource="sqlmap/CategoryAttr.xml" />
        <mapper resource="sqlmap/CategorySearchAttr.xml"/>
		<mapper resource="sqlmap/IndexCategory.xml" />
		<mapper resource="sqlmap/ProductAuth.xml" />
        <mapper resource="sqlmap/ProductComment.xml"/>
        <mapper resource="sqlmap/ProductImg.xml"/>
        <mapper resource="sqlmap/ProductSearchSort.xml"/>
        <mapper resource="sqlmap/SnapshotSku.xml"/>
		<mapper resource="sqlmap/Stock.xml" />
		<mapper resource="sqlmap/TitanSequence.xml" />
        <mapper resource="sqlmap/Video.xml"/>
        <mapper resource="sqlmap/ProductVideo.xml"/>
        <mapper resource="sqlmap/ProductPopGroupBuying.xml"/>
        <mapper resource="sqlmap/ProductSample.xml"/>
	</mappers>
</configuration>