Project

General

Profile

Download (1.77 KB) Statistics
| Branch: | Tag: | Revision:
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
	xmlns:context="http://www.springframework.org/schema/context"
5
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
6
    http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
7
    http://www.springframework.org/schema/context
8
    http://www.springframework.org/schema/context/spring-context-4.3.xsd">
9

    
10
    <bean id="dataSource" lazy-init="true" init-method="init"
11
        class="eu.etaxonomy.cdm.database.LocalH2" >
12
        <property name="driverClassName" value="org.h2.Driver"/>
13
        <property name="username" value="sa"/>
14
        <property name="password" value=""/>
15
<!--        <property name="url" value="jdbc:h2:file:~/.cdmlib/h2/testXXX"/>
16
        <property name="url" value="jdbc:h2:mem:cdmtest_mem"/>-->
17
        
18
        <!--property name="mode" value="inMemory"/-->
19
    </bean>
20
    
21
    <!-- This configures default properties, which can overridden with the file specified by the location property -->
22
    <bean id="hibernateProperties" 
23
        class="org.springframework.beans.factory.config.PropertiesFactoryBean">
24
        <property name="properties">
25
            <props>
26
                <prop key="hibernate.hbm2ddl.auto">create</prop>
27
                <prop key="hibernate.dialect">org.hibernate.dialect.H2Dialect</prop>
28
                <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.internal.NoCachingRegionFactory</prop>
29
                <prop key="hibernate.search.autoregister_listeners">false</prop>
30
                <prop key="hibernate.show_sql">false</prop>
31
                <prop key="hibernate.format_sql">false</prop>
32
            </props>
33
        </property>
34
    </bean> 
35
    
36
</beans>
37

    
(2-2/8)