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"
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">
11 <import resource=
"classpath:/org/argeo/slc/hibernate/sessionFactories.xml" />
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
23 <bean id=
"sessionFactory" parent=
"slcTemplates.sessionFactory.hibernateBasic">
24 <property name=
"dataSource" ref=
"dataSource" />
25 <property name=
"hibernateProperties">
27 hibernate.dialect=org.hibernate.dialect.H2Dialect
28 hibernate.hbm2ddl.auto=create
29 hibernate.current_session_context_class=thread
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=
"" />
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="" />