Project

General

Profile

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

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

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

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