sqlmap-config.xml 5.07 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.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.ProductPopAudit" alias="productPopAudit" />
		<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.ProductPopPriceRange" alias="productPopPriceRange" />
		<typeAlias type="com.dili.titan.domain.ProductSearchSort" alias="productSearchSort" />
		<typeAlias type="com.dili.titan.domain.ProductSearchCate" alias="productSearchCate" />

		<typeAlias type="com.dili.titan.domain.Auth" alias="auth" />
		<typeAlias type="com.dili.titan.domain.AuthScope" alias="authScope" />
		<typeAlias type="com.dili.titan.domain.ProductAuth" alias="productAuth" />
		<typeAlias type="com.dili.titan.domain.ProductVideo" alias="productVideo" />
		<typeAlias type="com.dili.titan.domain.ProductOffline" alias="productOffline" />
		<typeAlias type="com.dili.titan.domain.ProductOfflineAttrValue" alias="productOfflineAttrValue" />
		<typeAlias type="com.dili.titan.domain.Video" alias="video" />

		<typeAlias type="com.dili.titan.domain.IndexCategory" alias="indexCategory" />
		<!--供求需求-->
		<typeAlias type="com.dili.titan.gq.domain.Purchase" alias="purchase" />
		<typeAlias type="com.dili.titan.gq.domain.Supply" alias="supply" />
		<typeAlias type="com.dili.titan.gq.domain.Presale" alias="presale" />
	</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/ProductTemplete.xml" />
		<mapper resource="sqlmap/ProductPopAttr.xml" />
		<mapper resource="sqlmap/ProductPopAttrValue.xml" />
		<mapper resource="sqlmap/ProductImg.xml" />
		<mapper resource="sqlmap/ProductPop.xml" />
		<mapper resource="sqlmap/ProductPopAudit.xml" />
		<mapper resource="sqlmap/ProductSkuPop.xml" />
		<mapper resource="sqlmap/Templete.xml" />
		<mapper resource="sqlmap/SystemConfigure.xml" />
		<mapper resource="sqlmap/TitanSequence.xml" />
		<mapper resource="sqlmap/SnapshotSku.xml" />
		<mapper resource="sqlmap/CategoryTemplete.xml" />
		<mapper resource="sqlmap/Image.xml" />
		<mapper resource="sqlmap/ProductPopPriceRange.xml" />
		<mapper resource="sqlmap/ProductSearchSort.xml"/>
		<mapper resource="sqlmap/ProductSearchCate.xml"/>

		<mapper resource="sqlmap/Auth.xml"/>
		<mapper resource="sqlmap/AuthScope.xml"/>
		<mapper resource="sqlmap/ProductAuth.xml"/>
		<mapper resource="sqlmap/ProductVideo.xml"/>
		<mapper resource="sqlmap/ProductOffline.xml"/>
		<mapper resource="sqlmap/ProductOfflineAttrValue.xml"/>
		<mapper resource="sqlmap/Video.xml"/>

		<mapper resource="sqlmap/IndexCategory.xml"/>

		<!--供求需求-->
		<mapper resource="sqlmap/gq/Purchase.xml"/>
		<mapper resource="sqlmap/gq/Supply.xml"/>
		<mapper resource="sqlmap/gq/Presale.xml"/>
	</mappers>
</configuration>