Revision fce7d237
Added by Cherian Mathew over 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewClassificationWizard.java | ||
---|---|---|
50 | 50 |
protected void saveEntity() { |
51 | 51 |
//CdmStore.getService(IClassificationService.class).saveOrUpdate(getEntity()); |
52 | 52 |
Classification classification = getEntity(); |
53 |
CdmStore.getService(IClassificationService.class).merge(getEntity()); |
|
54 |
|
|
55 |
CdmApplicationState.getCurrentDataChangeService() |
|
56 |
.fireChangeEvent(new CdmChangeEvent(Action.Create, classification, NewTaxonNodeWizard.class), true); |
|
53 |
if(CdmStore.getCurrentSessionManager().isRemoting()) { |
|
54 |
CdmStore.getService(IClassificationService.class).merge(getEntity(), true); |
|
55 |
CdmApplicationState.getCurrentDataChangeService() |
|
56 |
.fireChangeEvent(new CdmChangeEvent(Action.Create, classification, NewTaxonNodeWizard.class), true); |
|
57 |
} else { |
|
58 |
CdmStore.getService(IClassificationService.class).save(getEntity()); |
|
59 |
} |
|
57 | 60 |
|
58 | 61 |
} |
59 | 62 |
|
Also available in: Unified diff
Add remoting checks for merge, Move to merge call which returns updated transient object