mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 20:28:00 +08:00
PL-7995 JSON entity deserialization doesn't work with EntitySerializationOption.COMPACT_REPEATED_ENTITIES
This commit is contained in:
parent
95dde7542c
commit
6768621285
@ -390,7 +390,14 @@ public class EntitySerialization implements EntitySerializationAPI {
|
||||
}
|
||||
}
|
||||
|
||||
readFields(jsonObject, entity);
|
||||
Map<Object, Entity> processedEntities = context.get().getProcessedEntities();
|
||||
Entity processedEntity = processedEntities.get(entity.getId());
|
||||
if (processedEntity != null) {
|
||||
entity = processedEntity;
|
||||
} else {
|
||||
processedEntities.put(entity.getId(), entity);
|
||||
readFields(jsonObject, entity);
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user