Project

General

Profile

« Previous | Next » 

Revision 02e380e6

Added by Andreas Müller almost 4 years ago

ref #9078 improve UpdateResult handling in CdmTransientEntityCacher

  • include result entity to the updated objects
  • load updated objects also if they their ID does not yet exist in Cacher (this is needed to always call recursive updating)

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/cache/ConversationalTransientEntityCacher.java
36 36
        // probably a good time to broadcast to other sessions
37 37

  
38 38
        Set<CdmBase> updatedObjects = result.getUpdatedObjects();
39
        updatedObjects.add(result.getCdmEntity());
39 40
        Set<CdmBase> reloadedObjects = new HashSet<>();
40 41
        Set<CdmEntityIdentifier> updatedCdmIds = result.getUpdatedCdmIds();
41 42
        boolean updatedCdmIdsIsEmpty = updatedCdmIds.isEmpty();
......
48 49
                if(!updatedCdmIdsIsEmpty && updatedCdmIds.contains(cdmEntityIdentifier)) {
49 50
                    updatedCdmIds.remove(cdmEntityIdentifier);
50 51
                }
51
                reloadedObjects.add(load(updatedObject, update));
52 52
            }
53
            reloadedObjects.add(load(updatedObject, update));
53 54
        }
54 55

  
55 56
        // remote load cdm identifiers of objects which already exist

Also available in: Unified diff