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"
4 xsi:
schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
6 <import resource=
"classpath:/org/argeo/slc/hibernate/spring.xml" />
8 <bean id=
"sessionFactory" parent=
"slcTemplates.sessionFactory.hibernateBasic">
9 <property name=
"dataSource" ref=
"dataSource" />
10 <property name=
"hibernateProperties">
12 hibernate.dialect=org.hibernate.dialect.HSQLDialect
13 hibernate.hbm2ddl.auto=create
14 hibernate.current_session_context_class=thread
20 class=
"org.springframework.jdbc.datasource.SingleConnectionDataSource"
21 destroy-method=
"destroy" lazy-init=
"true">
22 <property name=
"driverClassName" value=
"org.hsqldb.jdbcDriver" />
23 <property name=
"url" value=
"jdbc:hsqldb:mem:test" />
24 <property name=
"username" value=
"sa" />
25 <property name=
"password" value=
"" />
26 <property name=
"suppressClose" value=
"true" />
31 <bean id=
"testResultDao" parent=
"slcTemplates.dao.testResultDao">
32 <property name=
"sessionFactory" ref=
"sessionFactory" />
34 <bean id=
"testResultCollectionDao" parent=
"slcTemplates.dao.testResultCollectionDao">
35 <property name=
"sessionFactory" ref=
"sessionFactory" />
38 <bean id=
"slcExecutionDao" parent=
"slcTemplates.dao.slcExecutionDao">
39 <property name=
"sessionFactory" ref=
"sessionFactory" />