]> git.argeo.org Git - gpl/argeo-slc.git/blob - modules/server/org.argeo.slc.server.h2/META-INF/spring/h2.xml
Prepare SLC v1.1.2 release
[gpl/argeo-slc.git] / modules / server / org.argeo.slc.server.h2 / META-INF / spring / h2.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 resource="classpath:/org/argeo/slc/hibernate/sessionFactories.xml" />
12
13 <bean
14 class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
15 <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
16 <property name="ignoreUnresolvablePlaceholders" value="true" />
17 <property name="locations">
18 <value>osgibundle:h2.properties
19 </value>
20 </property>
21 </bean>
22
23 <bean id="sessionFactory" parent="slcTemplates.sessionFactory.hibernateBasic">
24 <property name="dataSource" ref="dataSource" />
25 <property name="hibernateProperties">
26 <value><![CDATA[
27 hibernate.dialect=org.hibernate.dialect.H2Dialect
28 hibernate.hbm2ddl.auto=create
29 hibernate.current_session_context_class=thread
30 ]]></value>
31 </property>
32 </bean>
33
34 <bean id="dataSource"
35 class="org.springframework.jdbc.datasource.DriverManagerDataSource">
36 <property name="driverClassName" value="org.h2.Driver" />
37 <property name="url" value="${slc.server.h2.url}" />
38 <property name="username" value="sa" />
39 <property name="password" value="" />
40 </bean>
41
42
43 <!--<bean id="dataSource" class="org.h2.jdbcx.JdbcDataSource">
44 <property name="URL" value="${slc.server.h2.url}" />
45 <property name="user" value="sa" />
46 <property name="password" value="" />
47 </bean>
48
49 --></beans>