1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
4 <!-- This is the Spring configuration to define the database-related stuff for the
5 all persistence tests. -->
8 <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
9 <property name="dataSource">
10 <ref bean="dataSource"/>
12 <property name="hibernateProperties">
14 <prop key="hibernate.dialect">${hibernate.dialect}</prop>
15 <prop key="hibernate.cache.provider_class">${hibernate.cache.provider}</prop>
16 <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
17 <prop key="hibernate.cache.use_query_cache">${hibernate.cache.use_query_cache}</prop>
20 <property name="mappingResources"><ref bean="hibernateMappingFiles"/></property>
23 <bean id="transactionManager"
24 class="org.springframework.orm.hibernate3.HibernateTransactionManager">
25 <property name="sessionFactory">
26 <ref local="sessionFactory"/>
30 <!-- Hibernate template used within test code for addition
31 Hibernate-specific stuff -->
32 <bean id="org.springframework.orm.hibernate3.HibernateTemplate"
33 class="org.springframework.orm.hibernate3.HibernateTemplate">
34 <property name="sessionFactory">
35 <ref bean="sessionFactory"/>