Project

General

Profile

Download (3.15 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.0.xsd
7
    http://www.springframework.org/schema/context
8
    http://www.springframework.org/schema/context/spring-context-4.0.xsd">
9

    
10
    <!-- This application can definetly still be adapted to the new structure.
11
    However currently it is only used the EditGeoServiceTest and works, so for now
12
    we don't touch it -->
13
    
14
    <import resource="classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/>
15

    
16
	<context:component-scan base-package="eu/etaxonomy/cdm/ext"/>
17

    
18
    <bean id="dataSource" class="org.unitils.database.UnitilsDataSourceFactoryBean"/>
19

    
20
    <!--
21
    <bean id="testingTermInitializer" class="eu.etaxonomy.cdm.database.TestingTermInitializer">
22
            TermsDataSet-with_auditing_info.cdmlib-services.xml has different IDs than TermsDataSet-with_auditing_info.xml
23
            which is used in persistence !!
24
        <property name="termsDataSet" value="classpath:/eu/etaxonomy/cdm/database/TermsDataSet-with_auditing_info.cdmlib-services.xml"/>
25
        <property name="termsDtd" value="classpath:/eu/etaxonomy/cdm/persistence/dao/hibernate/dataset.dtd"/>
26
        <property name="omit" value="false"/>
27
    </bean>
28
    <bean id="persistentTermInitializer" class="eu.etaxonomy.cdm.database.PersistentTermInitializer">
29
        <property name="omit" value="true"/>
30
    </bean>
31
    -->
32

    
33
     <bean id="hibernateProperties"
34
            class="org.springframework.beans.factory.config.PropertiesFactoryBean">
35
            <property name="properties">
36
                <props>
37
                    <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.internal.NoCachingRegionFactory</prop>
38
                    <prop key="hibernate.show_sql">false</prop>
39
                    <prop key="hibernate.format_sql">false</prop>
40
                    <prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.impl.FSDirectoryProvider</prop>
41
                    <!-- TODO trying to use a managed session context
42
                    <prop key="hibernate.current_session_context_class">managed</prop>
43
                    -->
44
                    <prop key="hibernate.search.default.indexBase">./target/index</prop>
45
                    <!--  hibernate.search.default.exclusive_index_use=false
46
                          locks must not only be released after application shutdown in test environment -->
47
                    <prop key="hibernate.search.default.exclusive_index_use">false</prop>
48
                    <!-- hsqldb v. <1.9 has a bug (http://sourceforge.net/tracker/?func=detail&atid=378131&aid=1407528&group_id=23316)
49
                        due to which it is not possible to use batch updates, so we need to disable
50
                        hibernate batching when using hsqldb in the app context: -->
51
                    <prop key="hibernate.jdbc.batch_size">0</prop>
52
                </props>
53
            </property>
54
    </bean>
55

    
56
</beans>
    (1-1/1)