Project

General

Profile

Download (2.44 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
	xmlns:tx="http://www.springframework.org/schema/tx"
6
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
7
    http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
8
    http://www.springframework.org/schema/context
9
    http://www.springframework.org/schema/context/spring-context-4.3.xsd
10
    http://www.springframework.org/schema/tx 
11
    http://www.springframework.org/schema/tx/spring-tx-4.3.xsd">
12

    
13
    <context:property-override location="classpath:eu/etaxonomy/cdm/persistence/override.properties-testPersistentDataSource"/>
14
    
15
   <!-- IS THIS REALY NEEDED? a.kohlbecker 25.11.2015
16
    <context:component-scan base-package="eu/etaxonomy/cdm"/> 
17
   -->
18
    
19
    <bean id="dataSource" class="org.unitils.database.UnitilsDataSourceFactoryBean"/>
20
     
21
    <bean id="hibernateProperties" 
22
        class="org.springframework.beans.factory.config.PropertiesFactoryBean">
23
        <property name="properties">
24
            <props>
25
                <prop key="hibernate.dialect">org.hibernate.dialect.H2CorrectedDialect</prop>
26
                <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.internal.NoCachingRegionFactory</prop>
27
                <prop key="hibernate.show_sql">false</prop>
28
                <prop key="hibernate.format_sql">false</prop>
29
                <prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.impl.FSDirectoryProvider</prop>
30
                <prop key="hibernate.search.default.indexBase">./target/test-classes</prop>
31
            </props>
32
        </property>
33
    </bean> 
34
    
35
    <bean id="taxonSpellingDirectory" class="org.springmodules.lucene.index.support.FSDirectoryFactoryBean">
36
      <property name="location" value="file:./target/test-classes/eu.etaxonomy.cdm.model.taxon.TaxonBase_spelling"/>
37
      <property name="create" value="false"/>
38
    </bean>
39

    
40
    <bean id="taxonSpellingIndex" class="org.springmodules.lucene.index.support.SimpleIndexFactoryBean">
41
      <property name="directory" ref="taxonSpellingDirectory"/>
42
      <property name="create" value="false"/>
43
      <property name="analyzer">
44
        <bean class="org.apache.lucene.analysis.SimpleAnalyzer"/>
45
      </property>
46
    </bean>
47

    
48
    <import resource="classpath:/eu/etaxonomy/cdm/persistence.xml"/>    
49
</beans>
(3-3/5)