Project

General

Profile

Download (1.93 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" 
11
        lazy-init="true"
12
        class="eu.etaxonomy.cdm.database.LocalHsqldb" 	
13
        init-method="init"
14
        destroy-method="destroy"
15
        >
16
        <property name="driverClassName" value="org.hsqldb.jdbcDriver"/>
17
        <property name="username" value="sa"/>
18
        <property name="password" value=""/>
19
        <property name="startServer" value="true"/>
20
        <property name="silent" value="true"/>
21
        <!-- property name="pureUrl" value="jdbc:hsqldb:hsql://localhost/"/-->
22
        <!-- property name="dbName" value="cdm"/> -->
23
        <!--  <property name="databasePath" value="C:\tmp\cdmDb\"/> -->
24
    </bean>
25
    
26
    <!-- This configures default properties, which can overridden with the file specified by the location property -->
27
    <bean id="hibernateProperties" 
28
        class="org.springframework.beans.factory.config.PropertiesFactoryBean">
29
        <property name="properties">
30
            <props>
31
                <prop key="hibernate.hbm2ddl.auto">create</prop>
32
                <prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop>
33
                <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.internal.NoCachingRegionFactory</prop>
34
                <prop key="hibernate.search.autoregister_listeners">false</prop>
35
                <prop key="hibernate.show_sql">false</prop>
36
                <prop key="hibernate.format_sql">false</prop>
37
            </props>
38
        </property>
39
    </bean>  
40
</beans>
41

    
(4-4/8)