Project

General

Profile

Revision 87f23196

ID87f231964fb26679a891636141510c1e3a798029
Parent 9da690b7
Child 94e54bd9

Added by Andreas Kohlbecker almost 4 years ago

AbstractCdmEditorPresenter prints PersistentContextAnalysis if loglevel = TRACE

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/AbstractCdmEditorPresenter.java
17 17
import eu.etaxonomy.cdm.api.service.IService;
18 18
import eu.etaxonomy.cdm.cache.CdmEntityCache;
19 19
import eu.etaxonomy.cdm.cache.EntityCache;
20
import eu.etaxonomy.cdm.debug.PersistentContextAnalyzer;
20 21
import eu.etaxonomy.cdm.model.common.CdmBase;
21 22
import eu.etaxonomy.cdm.persistence.hibernate.permission.CRUD;
22 23
import eu.etaxonomy.cdm.persistence.hibernate.permission.CdmAuthority;
......
136 137
        // the bean is now updated with the changes made by the user
137 138
        DTO bean = (DTO) saveEvent.getBean();
138 139

  
140
        if(logger.isTraceEnabled()){
141
            PersistentContextAnalyzer pca = new PersistentContextAnalyzer(bean);
142
            pca.printEntityGraph(System.err);
143
            pca.printCopyEntities(System.err);
144
        }
139 145
        bean = handleTransientProperties(bean);
146

  
147
        if(logger.isTraceEnabled()){
148
            PersistentContextAnalyzer pca = new PersistentContextAnalyzer(bean);
149
            pca.printEntityGraph(System.err);
150
            pca.printCopyEntities(System.err);
151
        }
140 152
        try {
141 153
            EntityChangeEvent changeEvent = getStore().saveBean(bean);
142 154

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)