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">
13 <ref bean="hibernateProperties"/>
15 <property name="schemaUpdate">
16 <value>${hibernate.schemaupdate}</value>
18 <property name="mappingResources"><ref bean="hibernateMappingFiles"/></property>
21 <bean id="transactionManager"
22 class="org.springframework.orm.hibernate3.HibernateTransactionManager">
23 <property name="sessionFactory">
24 <ref local="sessionFactory"/>
28 <!-- Hibernate template used within test code for addition
29 Hibernate-specific stuff -->
30 <bean id="org.springframework.orm.hibernate3.HibernateTemplate"
31 class="org.springframework.orm.hibernate3.HibernateTemplate">
32 <property name="sessionFactory">
33 <ref bean="sessionFactory"/>