mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
PL-9438 CommitContext should preserve order of entities to guarantee reproducible behaviour on server side in case of errors
This commit is contained in:
parent
d8e2499f3c
commit
60ff3f4845
@ -173,7 +173,7 @@ public class DataManagerBean implements DataManager {
|
||||
cc.getViews().put(entity, view);
|
||||
}
|
||||
|
||||
Set<Entity> result = new HashSet<>();
|
||||
Set<Entity> result = new LinkedHashSet<>();
|
||||
for (Map.Entry<String, CommitContext> entry : storeToContextMap.entrySet()) {
|
||||
DataStore dataStore = storeFactory.get(entry.getKey());
|
||||
Set<Entity> committed = dataStore.commit(entry.getValue());
|
||||
|
@ -31,8 +31,8 @@ public class CommitContext implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2510011302544968537L;
|
||||
|
||||
protected Collection<Entity> commitInstances = new HashSet<>();
|
||||
protected Collection<Entity> removeInstances = new HashSet<>();
|
||||
protected Collection<Entity> commitInstances = new LinkedHashSet<>();
|
||||
protected Collection<Entity> removeInstances = new LinkedHashSet<>();
|
||||
|
||||
protected Map<Object, View> views = new HashMap<>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user