]> git.argeo.org Git - gpl/argeo-slc.git/blob - sessionFactories.xml
48544ecb9bbf2ed7dcaebb9a8fbee264c7736a0a
[gpl/argeo-slc.git] / sessionFactories.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 Copyright (C) 2007-2012 Mathieu Baudier
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 -->
19 <beans xmlns="http://www.springframework.org/schema/beans"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
22 default-lazy-init="true">
23
24 <bean id="slcTemplates.sessionFactory.hibernateBasic" abstract="true"
25 class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
26 <property name="mappingResources">
27 <list>
28 <value>
29 org/argeo/slc/hibernate/structure/SimpleSElement.hbm.xml
30 </value>
31 <value>
32 org/argeo/slc/hibernate/test/SimpleResultPart.hbm.xml
33 </value>
34 <value>
35 org/argeo/slc/hibernate/test/tree/TreeTestResult.hbm.xml
36 </value>
37 <value>
38 org/argeo/slc/hibernate/test/tree/TreeTestResultCollection.hbm.xml
39 </value>
40 <value>
41 org/argeo/slc/hibernate/test/tree/PartSubList.hbm.xml
42 </value>
43 <value>
44 org/argeo/slc/hibernate/test/TestRunDescriptor.hbm.xml
45 </value>
46 <value>
47 org/argeo/slc/hibernate/process/SlcExecution.hbm.xml
48 </value>
49 <value>
50 org/argeo/slc/hibernate/process/SlcExecutionStep.hbm.xml
51 </value>
52 <value>
53 org/argeo/slc/hibernate/runtime/SlcAgentDescriptor.hbm.xml
54 </value>
55 <value>
56 org/argeo/slc/hibernate/attachment/SimpleAttachment.hbm.xml
57 </value>
58 </list>
59 </property>
60 <property name="cacheProvider" ref="slcDefault.cacheProvider.ehCache" />
61 </bean>
62
63 <bean id="slcDefault.cacheProvider.ehCache" class="net.sf.ehcache.hibernate.SingletonEhCacheProvider"
64 depends-on="slcDefault.cacheProvider.ehCacheManager">
65 </bean>
66
67 <bean id="slcDefault.cacheProvider.ehCacheManager"
68 class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
69 <property name="shared" value="true" />
70 <property name="configLocation"
71 value="classpath:/org/argeo/slc/hibernate/ehcache.xml" />
72 </bean>
73
74 </beans>