-// $Id$
/**
* Copyright (C) 2014 EDIT
* European Distributed Institute of Taxonomy
public class NewAmplificationWizard extends AbstractNewEntityWizard<Amplification> {
private AmplificationGeneralWizardPage amplificationGeneralPage;
- private AmplificationCloningWizardPage amplificationCloningPage;
- private AmplificationGelPhotoWizardPage amplificationGelPhotoWizardPage;
/** {@inheritDoc} */
@Override
public void addPages() {
amplificationGeneralPage = new AmplificationGeneralWizardPage(formFactory, getConversationHolder(), getEntity());
addPage(amplificationGeneralPage);
- amplificationCloningPage = new AmplificationCloningWizardPage(formFactory, getConversationHolder(), getEntity());
- addPage(amplificationCloningPage);
- amplificationGelPhotoWizardPage = new AmplificationGelPhotoWizardPage(formFactory, getConversationHolder(), getEntity());
- addPage(amplificationGelPhotoWizardPage);
}
/** {@inheritDoc} */
/** {@inheritDoc} */
@Override
protected void saveEntity() {
- CdmStore.getService(IAmplificationService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IAmplificationService.class).merge(getEntity(), true);
+
}
/** {@inheritDoc} */
public void setEntity(Amplification entity) {
super.setEntity(entity);
amplificationGeneralPage.getDetailElement().setEntity(entity);
- amplificationCloningPage.getDetailElement().setEntity(entity);
- amplificationGelPhotoWizardPage.getDetailElement().setEntity(entity);
}
@Override