]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.hibernate/src/main/resources/org/argeo/slc/hibernate/sessionFactories.xml
Make sure there are no multiple instantiations of sessionFactories
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.hibernate / src / main / resources / org / argeo / slc / hibernate / sessionFactories.xml
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"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
5 default-lazy-init="true">
6
7 <bean id="slcTemplates.sessionFactory.hibernateBasic" abstract="true"
8 class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
9 <property name="mappingResources">
10 <list>
11 <value>
12 org/argeo/slc/hibernate/structure/SimpleSElement.hbm.xml
13 </value>
14 <value>
15 org/argeo/slc/hibernate/test/SimpleResultPart.hbm.xml
16 </value>
17 <value>
18 org/argeo/slc/hibernate/test/tree/TreeTestResult.hbm.xml
19 </value>
20 <value>
21 org/argeo/slc/hibernate/test/tree/TreeTestResultCollection.hbm.xml
22 </value>
23 <value>
24 org/argeo/slc/hibernate/test/tree/PartSubList.hbm.xml
25 </value>
26 <value>
27 org/argeo/slc/hibernate/test/TestRunDescriptor.hbm.xml
28 </value>
29 <value>
30 org/argeo/slc/hibernate/process/SlcExecution.hbm.xml
31 </value>
32 <value>
33 org/argeo/slc/hibernate/process/SlcExecutionStep.hbm.xml
34 </value>
35 <value>
36 org/argeo/slc/hibernate/runtime/SlcAgentDescriptor.hbm.xml
37 </value>
38 <value>
39 org/argeo/slc/hibernate/attachment/SimpleAttachment.hbm.xml
40 </value>
41 </list>
42 </property>
43 <property name="cacheProvider" ref="slcDefault.cacheProvider.ehCache" />
44 </bean>
45
46 <bean id="slcDefault.cacheProvider.ehCache" class="net.sf.ehcache.hibernate.SingletonEhCacheProvider"
47 depends-on="slcDefault.cacheProvider.ehCacheManager">
48 </bean>
49
50 <bean id="slcDefault.cacheProvider.ehCacheManager"
51 class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
52 <property name="shared" value="true" />
53 <property name="configLocation"
54 value="classpath:/org/argeo/slc/hibernate/ehcache.xml" />
55 </bean>
56
57 </beans>