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
|
Do NOT specify the dataSource in org.springframework.orm.hibernate3.LocalSessionFactoryBean
|
29
|
if using org.hibernate.connection.C3P0ConnectionProvider.
|
30
|
Specifying it causes Spring to not honor the hibernate.connection.provider_class property
|
31
|
specified in the Hibernate properties section.
|
32
|
-->
|
33
|
<property name="dataSource" ref="dataSource"/>
|
34
|
<property name="hibernateProperties" ref="hibernateProperties"/>
|
35
|
</bean>
|
36
|
</beans>
|