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"/>
17 <property name=
"url" value=
"jdbc:mysql://192.168.2.10/cdm_build"/>
18 <property name=
"username" value=
"edit"/>
19 <property name=
"password" value=
"wp5"/>
22 <!-- This configures default properties, which can overridden with the file specified by the location property -->
23 <bean id=
"hibernateProperties"
24 class=
"org.springframework.beans.factory.config.PropertiesFactoryBean">
25 <property name=
"properties">
27 <prop key=
"hibernate.hbm2ddl.auto">validate
</prop>
28 <prop key=
"hibernate.dialect">org.hibernate.dialect.MySQLDialect
</prop>
29 <prop key=
"hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider
</prop>
30 <prop key=
"hibernate.show_sql">false
</prop>
31 <prop key=
"hibernate.format_sql">false
</prop>