1 |
469d68d6
|
Andreas Müller
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
3 |
597358de
|
ben.clark
|
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 |
469d68d6
|
Andreas Müller
|
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 |
1b217136
|
a.babadshanjan
|
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
|
10 |
469d68d6
|
Andreas Müller
|
">
|
11 |
7537e9c9
|
Andreas Müller
|
|
12 |
597358de
|
ben.clark
|
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
13 |
|
|
<property name="sessionFactory" ref="sessionFactory" />
|
14 |
|
|
</bean>
|
15 |
|
|
|
16 |
51116396
|
Andreas Müller
|
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
|
17 |
|
|
<property name="namingStrategy">
|
18 |
|
|
<bean class="org.hibernate.cfg.DefaultComponentSafeNamingStrategy" />
|
19 |
|
|
</property>
|
20 |
|
|
|
21 |
597358de
|
ben.clark
|
<!-- <property name="entityInterceptor">
|
22 |
51116396
|
Andreas Müller
|
<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 |
089450d5
|
Andreas Kohlbecker
|
<!--
|
28 |
892efc69
|
Andreas Kohlbecker
|
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 |
51116396
|
Andreas Müller
|
<property name="dataSource" ref="dataSource"/>
|
35 |
|
|
<property name="hibernateProperties" ref="hibernateProperties"/>
|
36 |
|
|
</bean>
|
37 |
4e5409ed
|
m.doering
|
</beans>
|