Revision 02ec8d6b
Added by Andreas Kohlbecker over 6 years ago
src/main/java/eu/etaxonomy/vaadin/mvp/AbstractPresenter.java | ||
---|---|---|
13 | 13 |
|
14 | 14 |
import eu.etaxonomy.cdm.api.application.CdmRepository; |
15 | 15 |
import eu.etaxonomy.vaadin.ui.navigation.NavigationManager; |
16 |
import eu.etaxonomy.vaadin.ui.navigation.NavigationManagerBean; |
|
17 | 16 |
|
18 | 17 |
/** |
19 | 18 |
* AbstractPresenter is the base class of all presenter components. Presenter's |
... | ... | |
82 | 81 |
*/ |
83 | 82 |
protected Session getSession() { |
84 | 83 |
Session session = getRepo().getSession(); |
85 |
logger.trace(this._toString() + ".getSession() - session:" + session.hashCode() +", persistenceContext: " + ((SessionImplementor)session).getPersistenceContext() + " - " + session.toString()); |
|
84 |
if(logger.isTraceEnabled()){ |
|
85 |
if(session.isOpen()){ |
|
86 |
logger.trace(this._toString() + ".getSession() - session:" + session.hashCode() +", persistenceContext: " + ((SessionImplementor)session).getPersistenceContext() + " - " + session.toString()); |
|
87 |
} else { |
|
88 |
logger.trace(this._toString() + ".getSession() - session:" + session.hashCode() +" is closed "); |
|
89 |
} |
|
90 |
} |
|
86 | 91 |
return session; |
87 | 92 |
} |
88 | 93 |
|
Also available in: Unified diff
ref #7059 ref #7046 using kindOfunit for TypeDesisgnations instead of DerivationEvent type and fixing save and LIE problems:
- intoducing EntityCache to allow re-using previously loaded entities
- CdmEntityCache implements EntityCache
- ToOneRelatedEntityReloader to replace entities loaded by the LazySelect
- SpecimenTypeDesignationWorkingsetEditorPresenter implements CachingPresenter so that EnityCache and
ToOneRelatedEntityReloader can interact
- completing init strategies in RegistrationWorkingSetService
- SpecimenTypeDesignationWorkingsetEditorPresenter.saveBean reuses entities stored in entityCache
- introducing SpecimenTypeDesignationWorkingSetService