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:
tx=
"http://www.springframework.org/schema/tx"
5 xmlns:
context=
"http://www.springframework.org/schema/context"
6 xsi:
schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
8 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
11 <context:component-scan base-package=
"eu.etaxonomy.cdm" />
13 <import resource=
"classpath:/eu/etaxonomy/cdm/persistence.xml" />
15 <bean id=
"dataSource" lazy-init=
"true" class=
"org.springframework.jdbc.datasource.DriverManagerDataSource">
16 <property name=
"driverClassName" value=
"com.mysql.jdbc.Driver"/>
18 <property name="url" value="jdbc:mysql://192.168.2.10/cdm_portal"/>
19 <property name="url" value="jdbc:mysql://127.0.0.1/cdm_portal_test"/>
21 <property name=
"url" value=
"jdbc:mysql://192.168.2.10/cdm_portal_test"/>
22 <property name=
"username" value=
"edit"/>
23 <property name=
"password" value=
"wp5"/>
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">
31 <prop key=
"hibernate.hbm2ddl.auto">validate
</prop>
32 <prop key=
"hibernate.dialect">org.hibernate.dialect.MySQLDialect
</prop>
33 <prop key=
"hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider
</prop>
34 <prop key=
"hibernate.show_sql">false
</prop>
35 <prop key=
"hibernate.format_sql">false
</prop>