minor
[cdmlib.git] / cdmlib-persistence / src / test / resources / eu / etaxonomy / cdm / jdbc-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 xmlns:util="http://www.springframework.org/schema/util"
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/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
9
10 <bean id="dataSource" lazy-init="true" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
11 <property name="driverClassName" value="${db.driver_class}"/>
12 <property name="url" value="${db.url}"/>
13 <property name="username" value="${db.username}"/>
14 <property name="password" value="${db.password}"/>
15 </bean>
16
17 <!--
18 hibernate.dialect=org.hibernate.dialect.MySQLDialect
19 db.driver_class=com.mysql.jdbc.Driver
20 db.url=jdbc:mysql://192.168.2.10/cdm_build
21 db.username=edit
22 db.password=wp5
23
24 hibernate.dialect=org.hibernate.dialect.SQLServerDialect
25 db.driver_class=com.microsoft.jdbc.sqlserver.SQLServerDriver
26 db.url=jdbc:microsoft:sqlserver://Paddie:1433;DataBase=edit_test;SelectMethod=direct
27 db.username=andreas
28 db.password=r56
29 -->
30
31 <!-- This configures default properties, which can overridden with the file specified by the location property -->
32 <bean id="hibernateProperties"
33 class="org.springframework.beans.factory.config.PropertiesFactoryBean">
34 <property name="properties">
35 <props>
36 <prop key="hibernate.hbm2ddl.auto">validate</prop>
37 <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
38 <prop key="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</prop>
39 <prop key="hibernate.show_sql">false</prop>
40 <prop key="hibernate.format_sql">false</prop>
41 </props>
42 </property>
43 </bean>
44 </beans>
45