Project

General

Profile

Download (1.76 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: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
9
    ">
10

    
11
    
12
    <bean id="dataSource"  lazy-init="true" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
13
        <property name="driverClassName" value="com.p6spy.engine.spy.P6SpyDriver"/>
14
    	<property name="username" value="${local.usr}"/>
15
        <property name="password" value="${local.pwd}"/>
16
        <property name="url" value="jdbc:mysql://${local.host}/cdm_local_cichorieae"/>
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">validate</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
            </props>
31
        </property>
32
    </bean>
33

    
34

    
35
</beans>
(8-8/9)