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.0.xsd">
7 <bean id=
"dataSourceResults"
8 class=
"org.springframework.jdbc.datasource.SingleConnectionDataSource"
9 destroy-method=
"destroy">
10 <property name=
"driverClassName" value=
"org.hsqldb.jdbcDriver" />
11 <!-- <property name="url"
12 value="jdbc:hsqldb:file:${slc.workDir}/results/hsqldb/db;shutdown=true" />-->
14 value=
"jdbc:hsqldb:mem:results" />
15 <property name=
"username" value=
"sa" />
16 <property name=
"password" value=
"" />
17 <property name=
"suppressClose" value=
"true" />
20 <bean id=
"sessionFactoryResults"
21 class=
"org.springframework.orm.hibernate3.LocalSessionFactoryBean">
22 <property name=
"dataSource" ref=
"dataSourceResults" />
23 <property name=
"mappingResources">
26 org/argeo/slc/hibernate/structure/SimpleSElement.hbm.xml
29 org/argeo/slc/hibernate/structure/tree/TreeSPath.hbm.xml
32 org/argeo/slc/hibernate/structure/tree/TreeSRegistry.hbm.xml
35 org/argeo/slc/hibernate/test/NumericTRId.hbm.xml
38 org/argeo/slc/hibernate/test/SimpleResultPart.hbm.xml
41 org/argeo/slc/hibernate/test/tree/TreeTestResult.hbm.xml
44 org/argeo/slc/hibernate/test/tree/PartSubList.hbm.xml
48 <property name=
"hibernateProperties">
50 hibernate.dialect=org.hibernate.dialect.HSQLDialect
51 cache.provider_class=org.hibernate.cache.NoCacheProvider
52 cache.use_query_cache=false
53 cache.use_minimal_puts=false
55 current_session_context_class=thread
56 hibernate.hbm2ddl.auto=create
61 <bean id=
"testResultDao"
62 class=
"org.argeo.slc.hibernate.test.tree.TestResultDaoHibernate">
63 <property name=
"sessionFactory" ref=
"sessionFactoryResults" />
66 <bean id=
"treeSPathDao"
67 class=
"org.argeo.slc.hibernate.structure.tree.TreeSPathDaoHibernate">
68 <property name=
"sessionFactory" ref=
"sessionFactoryResults" />
71 <bean id=
"treeSRegistryDao"
72 class=
"org.argeo.slc.hibernate.structure.tree.TreeSRegistryDaoHibernate">
73 <property name=
"sessionFactory" ref=
"sessionFactoryResults" />
74 <property name=
"treeSPathDao" ref=
"treeSPathDao" />