日期:2014-05-17 浏览次数:20719 次
<bean autowire="byName" id="jahwaSessionFactory" name="jahwaSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="jahwaDataSource" />
<qualifier value="jahwaSessionFactory"/>
<property name="mappingLocations">
<list>
<value>classpath*:mapping/**/*.hbm.xml</value>
<value>classpath*:com/mdao/emap/**/*.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<value>
hibernate.dialect=${hibernate.dialect}
hibernate.show_sql=false
hibernate.format_sql=true
hibernate.cache.use_second_level_cache=false
hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider
hibernate.cache.use_structured_entries=true
</value>
</property>
</bean>
<bean autowire="byName" id="emapSessionFactory" name="emapSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="emapDataSource" />
<qualifier type="org.springframework.beans.factory.annotation.Qualifier" value="emapSessionFactory"/>
<property name="mappingLocations">
<list>
<value>classpath*:mapping/**/*.hbm.xml</value>
<value>classpath*:com/mdao/emap/**/*.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<value>
hibernate.dialect=${hibernate.dialect}
hibernate.show_sql=false
hibernate.format_sql=true
hibernate.cache.use_second_level_cache=false
hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider
hibernate.cache.use_structured_entries=true
</value>
</property>
</bean>