]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.hibernate/src/main/resources/org/argeo/slc/hibernate/sessionFactories.xml
Take into account OSGiBoot renaming
[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 <!--
3
4 Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
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
20 <beans xmlns="http://www.springframework.org/schema/beans"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
23 default-lazy-init="true">
24
25 <bean id="slcTemplates.sessionFactory.hibernateBasic" abstract="true"
26 class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
27 <property name="mappingResources">
28 <list>
29 <value>
30 org/argeo/slc/hibernate/structure/SimpleSElement.hbm.xml
31 </value>
32 <value>
33 org/argeo/slc/hibernate/test/SimpleResultPart.hbm.xml
34 </value>
35 <value>
36 org/argeo/slc/hibernate/test/tree/TreeTestResult.hbm.xml
37 </value>
38 <value>
39 org/argeo/slc/hibernate/test/tree/TreeTestResultCollection.hbm.xml
40 </value>
41 <value>
42 org/argeo/slc/hibernate/test/tree/PartSubList.hbm.xml
43 </value>
44 <value>
45 org/argeo/slc/hibernate/test/TestRunDescriptor.hbm.xml
46 </value>
47 <value>
48 org/argeo/slc/hibernate/process/SlcExecution.hbm.xml
49 </value>
50 <value>
51 org/argeo/slc/hibernate/process/SlcExecutionStep.hbm.xml
52 </value>
53 <value>
54 org/argeo/slc/hibernate/runtime/SlcAgentDescriptor.hbm.xml
55 </value>
56 <value>
57 org/argeo/slc/hibernate/attachment/SimpleAttachment.hbm.xml
58 </value>
59 </list>
60 </property>
61 <property name="cacheProvider" ref="slcDefault.cacheProvider.ehCache" />
62 </bean>
63
64 <bean id="slcDefault.cacheProvider.ehCache" class="net.sf.ehcache.hibernate.SingletonEhCacheProvider"
65 depends-on="slcDefault.cacheProvider.ehCacheManager">
66 </bean>
67
68 <bean id="slcDefault.cacheProvider.ehCacheManager"
69 class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
70 <property name="shared" value="true" />
71 <property name="configLocation"
72 value="classpath:/org/argeo/slc/hibernate/ehcache.xml" />
73 </bean>
74
75 </beans>