]> git.argeo.org Git - gpl/argeo-slc.git/blob - server/org.argeo.slc.siteserver/bundles/org.argeo.slc.server.hsqldb/META-INF/spring/hsqldb.xml
Improve server structure
[gpl/argeo-slc.git] / server / org.argeo.slc.siteserver / bundles / org.argeo.slc.server.hsqldb / META-INF / spring / hsqldb.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" xmlns:aop="http://www.springframework.org/schema/aop"
4 xmlns:tx="http://www.springframework.org/schema/tx"
5 xsi:schemaLocation="
6 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
8 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"
9 default-lazy-init="false">
10
11 <import
12 resource="classpath:/org/argeo/slc/hibernate/spring/applicationContext.xml"
13 />
14
15 <bean id="sessionFactory" parent="slcTemplates.sessionFactory.hibernateBasic">
16 <property name="dataSource" ref="dataSource" />
17 <property name="hibernateProperties">
18 <value><![CDATA[
19 hibernate.dialect=org.hibernate.dialect.HSQLDialect
20 hibernate.hbm2ddl.auto=create
21 hibernate.current_session_context_class=thread
22 ]]></value>
23 </property>
24 </bean>
25
26 <bean id="dataSource" class="org.hsqldb.jdbc.jdbcDataSource">
27 <property name="database" value="jdbc:hsqldb:mem:test"/>
28 <property name="user" value="sa"/>
29 <property name="password" value=""/>
30
31 </bean>
32 </beans>