Revision 589a5c0f
Added by Patrick Plitzner almost 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/EditFromSelectionWizard.java | ||
---|---|---|
94 | 94 |
//check if entity has already been persisted |
95 | 95 |
if(entity.getId()==0){ |
96 | 96 |
rootElement = entity; |
97 |
cdmEntitySession.addNewCdmEntity(rootElement); |
|
98 | 97 |
} |
99 | 98 |
else{ |
100 | 99 |
IService<CdmBase> service = CdmStore.getService(entity); |
... | ... | |
210 | 209 |
cdmEntitySession.dispose(); |
211 | 210 |
} |
212 | 211 |
if(previousCdmEntitySession!=null){ |
213 |
previousCdmEntitySession.dispose();
|
|
212 |
previousCdmEntitySession.bind();
|
|
214 | 213 |
} |
215 | 214 |
} |
216 | 215 |
|
Also available in: Unified diff
Fix session disposal #5694