dataportal release v2.0
[cdmlib.git] / cdmlib-remote / src / main / webapp / WEB-INF / datasources / routing-datasource.xml
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-2.5.xsd
7 http://www.springframework.org/schema/context
8 http://www.springframework.org/schema/context/spring-context-2.5.xsd">
9
10
11 <bean id="dataSource" lazy-init="true" class="eu.etaxonomy.cdm.database.UpdatableRoutingDataSource">
12 <!-- The property beanDefinitionFile defaults to "datasources.xml" in {USER_HOME}./cdmLibrary -->
13 <!-- The property defaultDatasourceName defaults to "default"
14 <property name="beanDefinitionFile" value="datasources-p6spy.xml" />
15 <property name="defaultDatasourceName" value="cichorieae" />
16 -->
17 </bean>
18
19
20 <!-- This configures default properties, which can overridden with the file specified by the location property -->
21 <bean id="hibernateProperties"
22 class="org.springframework.beans.factory.config.PropertiesFactoryBean">
23 <property name="properties">
24 <props>
25 <prop key="hibernate.hbm2ddl.auto">update</prop>
26 <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
27 <prop key="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</prop>
28 <prop key="hibernate.show_sql">false</prop>
29 <prop key="hibernate.format_sql">false</prop>
30 <prop key="hibernate.search.default.indexBase">${user.home}/.cdmLibrary/</prop>
31 </props>
32 </property>
33 </bean>
34
35 </beans>