Project

General

Profile

« Previous | Next » 

Revision cab6ecd7

Added by Andreas Kohlbecker about 5 years ago

ref #8188 configurable.xml loads hibernate properties from src/test/resources/hibernate.properties - cdm-vaadin

View differences:

src/main/webapp/WEB-INF/datasources/configurable.xml
12 12

  
13 13
    <bean class="eu.etaxonomy.cdm.opt.config.DataSourceConfigurer" >
14 14
    </bean>
15

  
16
    <bean id="jndiHibernateProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
17
        <property name="properties"><!-- This configures default hibernate properties -->
15
    
16
    <bean id="jndiHibernateProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean" >
17
        <property name="locations" value="classpath:hibernate.properties"/>
18
        <property name="localOverride" value="false"/>
19
        <property name="properties">
20
             <!-- This configures default hibernate properties which can be overwritten 
21
                  by the properties defined in the hibernate.properties file 
22
             -->
18 23
            <props>
19 24
              <!--
20 25
                the hibernate.dialect will be set by the JndiDataSourceConfig according to the
src/test/resources/hibernate.properties
1
#
2
# application properties to be applied to the jndiHibernateProperties which are configured in the 
3
# src/main/webapp/WEB-INF/datasources/configurable.xml file
4
#
5

  
6
# hibernate.hbm2ddl.auto - default: validate, options:  create | create-drop
7
# !!! must never be set to 'update' !!! 
8
#hibernate.hbm2ddl.auto=create-drop
9

  
10
# hibernate.show_sql - default: false
11
#hibernate.show_sql=true
12

  
13
# hibernate.format_sql - default: false
14
#hibernate.format_sql=true

Also available in: Unified diff