Project

General

Profile

Revision 754d57e3

ID754d57e3aa08265ad9b4502bf104614a5c49c574
Parent d5994c61
Child 8d7c5c55

Added by Andreas Kohlbecker over 3 years ago

fix #6687 hibernate.event.merge.entity_copy_observer=log to avoid merge problems

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/AbstractCdmEditorPresenter.java
128 128
        }
129 129

  
130 130
        logger.trace(this._toString() + ".mergedBean() - doing merge of" + bean.toString());
131
        // to avoid merge problems as described in https://dev.e-taxonomy.eu/redmine/issues/6687
132
        // we are set the hibernate property hibernate.event.merge.entity_copy_observer=allow
131 133
        @SuppressWarnings("unchecked")
132 134
        DTO mergedBean = (DTO) session.merge(bean);
133 135
        logger.trace(this._toString() + ".mergedBean() - bean after merge " + bean.toString());
src/main/webapp/WEB-INF/datasources/configurable.xml
26 26
              <prop key="hibernate.format_sql">false</prop>
27 27
              <prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.impl.FSDirectoryProvider</prop>
28 28
              <prop key="hibernate.search.default.indexBase">${eu.etaxonomy.cdm.search.index.path}</prop><!-- set in applicationContext.xml -->
29
              <!-- 
30
                  Using the hibernate.event.merge.entity_copy_observer is a bit risky, 
31
                  see https://hibernate.atlassian.net/browse/HHH-9106 and 
32
                  https://dev.e-taxonomy.eu/redmine/issues/6687 
33
              -->
34
              <prop key="hibernate.event.merge.entity_copy_observer">allow</prop>
29 35

  
30 36
              <!-- disabling hibernate search for testing (speed up and lesser heap usage)
31 37
              <prop key="hibernate.search.autoregister_listeners">false</prop>

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)