/** * Merges eagerly the edited entity. * <p> * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { IEntity entityClone = getModel(context); getBackendController(context).merge(entityClone, EMergeMode.MERGE_EAGER); return super.execute(actionHandler, context); } }
if (!controller.isEntityRegisteredForDeletion((IEntity) nextComponent)) { if (localMergeMode != null) { mergedComponents.add(controller.merge((IEntity) nextComponent, localMergeMode)); } else { mergedComponents.add(nextComponent);
if (selectedElement instanceof IEntity) { if (!bc.isUnitOfWorkActive()) { selectedElement = bc.merge((IEntity) selectedElement, EMergeMode.MERGE_LAZY);
selectedItem = getController(context).getBackendController().merge((IEntity) selectedItem, EMergeMode.MERGE_LAZY);