}
configurator.setPageNumber(pageNumber);
entities = listEntities(configurator);
+ /*
+ * IMPORTANT!
+ * Entities have to be loaded into the main session because they are
+ * loaded in a parallel asynchronous thread
+ */
+ getCdmEntitySession().load(entities, true);
+
model.addAll(entities);
- //select if entity is loaded
+
+ //select entity when it is loaded
if(selection!=null && model.containsAll(selection.toList())){
EventUtility.postAsyncEvent(WorkbenchEventConstants.BULK_EDITOR_SEARCH_FINISHED, selection);
}