]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - 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
index 3aafce864e99a85fc4dd333bdc50647320d8d118..7fc637737867c2f2ebb428f14b196c35fb5f9778 100644 (file)
@@ -1,19 +1,27 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+
+    Licensed under the Apache License, Version 2.0 (the "License");
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+            http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
        default-lazy-init="true">
 
-       <bean id="slcDefault.dataSource.inMemoryTestHSQL"
-               class="org.springframework.jdbc.datasource.SingleConnectionDataSource"
-               destroy-method="destroy">
-               <property name="driverClassName" value="org.hsqldb.jdbcDriver" />
-               <property name="url" value="jdbc:hsqldb:mem:test" />
-               <property name="username" value="sa" />
-               <property name="password" value="" />
-               <property name="suppressClose" value="true" />
-       </bean>
-
        <bean id="slcTemplates.sessionFactory.hibernateBasic" abstract="true"
                class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
                <property name="mappingResources">
                        value="classpath:/org/argeo/slc/hibernate/ehcache.xml" />
        </bean>
 
-       <bean id="slcDefault.sessionFactory.hibernateTestHSQL" parent="slcTemplates.sessionFactory.hibernateBasic">
-               <property name="dataSource" ref="slcDefault.dataSource.inMemoryTestHSQL" />
-               <property name="hibernateProperties">
-                       <value><![CDATA[
-                               hibernate.dialect=org.hibernate.dialect.HSQLDialect
-                               hibernate.hbm2ddl.auto=create
-                               hibernate.current_session_context_class=thread
-                       ]]></value>
-               </property>
-       </bean>
-
 </beans>
\ No newline at end of file