73c02b4433fc0f895f32be8edef9ebe535e92639
[utils] /
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
3
4 <!-- This is the Spring configuration to define the database-related stuff for the
5     all persistence tests.  -->
6 <beans>
7     
8     <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
9         <property name="dataSource">
10             <ref bean="dataSource"/>
11         </property>
12         <property name="hibernateProperties">
13             <ref bean="hibernateProperties"/>
14         </property>
15         <property name="schemaUpdate">
16             <value>${hibernate.schemaupdate}</value>
17         </property>
18         <property name="mappingResources"><ref bean="hibernateMappingFiles"/></property>
19     </bean>
20     
21     <bean id="transactionManager"
22         class="org.springframework.orm.hibernate3.HibernateTransactionManager">
23         <property name="sessionFactory">
24             <ref local="sessionFactory"/>
25         </property>
26     </bean>
27     
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"/>
34         </property>
35     </bean>
36 </beans>