Project

General

Profile

Revision cab6ecd7

IDcab6ecd76110dbb9424d4b3936f8dbd9a1e11900
Parent 63311bd9
Child 2d4efdc3

Added by Andreas Kohlbecker 4 months 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

Add picture from clipboard (Maximum size: 40 MB)