反向建表

<entry key="hibernate.hbm2ddl.auto" value="update" />
<entry key="hibernate.cache.use_query_cache" value="true" />

<?xml version="1.0" encoding="GBK"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"
	default-lazy-init="false">
	<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
	<bean id="webAnnotations"
		class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations"
		lazy-init="false" />
	<bean id="jsr181HandlerMapping"
		class="org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping"
		lazy-init="false">
		<property name="xfire" ref="xfire" />
		<property name="webAnnotations" ref="webAnnotations" />
		<!--property name="inHandlers" ref="authenticationHandler"/-->
	</bean>
	<bean class="com.xdtech.platform.core.service.Mt4Service" autowire="byName"/>
	<bean id="authenticationHandler" class="com.xdtech.platform.core.service.AuthenticationHandler" />
	
	
	
	<bean id="dataSource"
		class="com.xdtech.platform.core.framework.ComboPooledDataSource"
		destroy-method="close">
		<property name="maxIdleTime" value="10000" />
		<property name="idleConnectionTestPeriod" value="600" />
		<property name="driverClass" value="com.mysql.jdbc.Driver"/>
		<property name="jdbcUrl" value="jdbc:mysql://localhost:3306/mt4ccbsz"/>
		<property name="user" value="root"/>
		<property name="password" value="root"/>
	</bean>
	
	
	<!--
	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"       
        destroy-method="close">       
    	<property name="driverClassName" value="com.mysql.jdbc.Driver" />      
    	<property name="url" value="jdbc:mysql://localhost:3306/mt4ccb" />      
    	<property name="username" value="root" />      
    	<property name="password" value="root" />      
	</bean>  
	-->
	
	<!--  
	<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
		<property name="driverClass" value="com.mysql.jdbc.Driver" />
		<property name="jdbcUrl" value="jdbc:mysql://localhost:3306/mt4ccb" />
		<property name="user" value="root" />
		<property name="password" value="alexchen" />
		<property name="initialPoolSize" value="10" />
		<property name="minPoolSize" value="10" />
		<property name="maxPoolSize" value="50" />
		<property name="maxIdleTime" value="7200" />
		<property name="acquireIncrement" value="5" />
		<property name="checkoutTimeout" value="10000" />
		<property name="maxIdleTimeExcessConnections" value="10" />
	</bean>
	-->
	
	<bean id="sessionFactory"
		class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"
		autowire="byName">
		<property name="dataSource">
			<ref bean="dataSource" />
		</property>
		<property name="hibernateProperties">
			<map>
			    <entry key="c3p0.max_statements" value="0" />
				<entry key="hibernate.connection.isolation" value="4" />
				<entry key="hibernate.max_fetch_depth" value="1" />
				<entry key="hibernate.show_sql" value="true" />
				<entry key="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/> 
				<entry key="hibernate.cache.use_query_cache" value="false" />
				<entry key="hibernate.query.substitutions" value="true 1, false 0, yes 'Y', no 'N'" />
				<entry key="hibernate.cache.provider_class" value="org.hibernate.cache.EhCacheProvider" />
				<entry key="hibernate.query.factory_class" value="org.hibernate.hql.ast.ASTQueryTranslatorFactory" />
				<!--反向建表
				<entry key="hibernate.hbm2ddl.auto" value="update" />
				<entry key="hibernate.cache.use_query_cache" value="true" />
			--></map>
		</property>
		<property name="annotatedClasses">  
			<list>
				<value>com.xdtech.platform.domain.model.system.SeqID</value>
				<value>com.xdtech.platform.domain.model.user.User</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.CashInOutPush</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.CashOutAppl</value>
				
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.CashDtlFile</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.FutureFile</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.FileComission</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.LiquidateFile</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.Member</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.SignIO</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.SignTime</value>


				
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.Mt4System</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.MemberCashIn</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.MemberCashOut</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.AccBal</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.AccDtl</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.AccDtlInfo</value>
			
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.MemberCancelAppl</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.MemberInfoRecv</value>
				
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.LogMsg</value>
				
				
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.Group</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.GroupRight</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.Right</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.LiFileResp</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.LiFileRespDtl</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.LiSysFile</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.SystemConfig</value>
				<value>com.xdtech.platform.domain.model.bank.ccb.futures.ComissionCfg</value>
			</list>
		</property>
	</bean>
	<bean id="transactionManager"
		class="org.springframework.orm.hibernate3.HibernateTransactionManager"
		autowire="byName" />
	
	<bean id="dao" class="com.xdtech.platform.dao.IDaoManager" autowire="byName" />
	<bean id="idManager" class="com.xdtech.platform.dao.service.IDManager" autowire="byName"/>
	<bean id="cashIODtlManager" class="com.xdtech.platform.dao.service.CashIODtlManager" autowire="byName"/>
	<bean id="cashIOPushManager" class="com.xdtech.platform.dao.service.CashIOPushManager" autowire="byName"/>
	<bean id="cashOutApplManager" class="com.xdtech.platform.dao.service.CashOutApplManager" autowire="byName"/>
	<bean id="liquidateManager" class="com.xdtech.platform.dao.service.LiquidateManager" autowire="byName"/>
	<bean id="memberManager" class="com.xdtech.platform.dao.service.MemberManager" autowire="byName"/>
	<bean id="signIOManager" class="com.xdtech.platform.dao.service.SignIOManager" autowire="byName"/>
	
	
	<bean id="memberCashInManager" class="com.xdtech.platform.dao.service.MemberCashInManager" autowire="byName"/>
	<bean id="memberCashOutManager" class="com.xdtech.platform.dao.service.MemberCashOutManager" autowire="byName"/>
	<bean id="accBalManager" class="com.xdtech.platform.dao.service.AccBalManager" autowire="byName"/>
	<bean id="accDtlManager" class="com.xdtech.platform.dao.service.AccDtlManager" autowire="byName"/>
	<bean id="systemManager" class="com.xdtech.platform.dao.service.SystemManager" autowire="byName"/>
	<bean id="comissionCfgManager" class="com.xdtech.platform.dao.service.ComissionCfgManager" autowire="byName"/>
	<!-- auto task -->
	
	<!-- 
	    
	 -->
	
	
</beans>

猜你喜欢

转载自love398146779.iteye.com/blog/2153110
今日推荐