Project

General

Profile

Download (2.04 KB) Statistics
| Branch: | Tag: | Revision:
1
<?xml version="1.0" encoding="UTF-8"?>
2
<beans xmlns="http://www.springframework.org/schema/beans"
3
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4
	xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
5
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
6
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
8
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
9
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
10
    ">
11

    
12
	<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
13
		<property name="sessionFactory" ref="sessionFactory" />
14
	</bean>
15
	
16
	<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
17
	    <property name="namingStrategy">
18
	    	<bean class="org.hibernate.cfg.DefaultComponentSafeNamingStrategy" />
19
	    </property>
20
	    
21
<!--	<property name="entityInterceptor">
22
    		<bean class="eu.etaxonomy.cdm.persistence.hibernate.CdmHibernateInterceptor" />
23
    	</property>
24
  -->	    
25
	    <property name="configLocation" value="classpath:eu/etaxonomy/cdm/hibernate.cfg.xml"/>
26
	    <property  name="configurationClass" value="org.hibernate.cfg.AnnotationConfiguration"/>
27
	    <!--
28
            If dataSource is set, this will override corresponding settings in Hibernate properties.
29
            If this is set, the Hibernate settings should not define a connection provider to 
30
            avoid meaningless double configuration.
31
            
32
            see also org.springframework.orm.hibernate3.AbstractSessionFactoryBean.setDataSource(DataSource dataSource)
33
         --> 
34
	    <property name="dataSource" ref="dataSource"/>
35
	    <property name="hibernateProperties" ref="hibernateProperties"/>
36
	</bean>
37
</beans>
(5-5/6)