Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As it was initially implemented there is no validation for parent data node existence when persisting data nodes.


draw.io DiagramborderfalsediagramNameCPS partial data persistencesimpleViewerfalsewidthlinksautotbstyleinlinediagramDisplayNamelboxfalsediagramWidth871revision2It is unnecessary when the whole data tree is persisted (A) because there is a data for all the levels with no gaps. 
With non-empty initial xpath it makes it possible to persist data nodes from lower levels of structure hierarchy without upper
level data nodes (B). 

draw.io Diagram
borderfalse
diagramNameCPS partial data persistence
simpleViewerfalse
width
linksauto
tbstyleinline
diagramDisplayName
lboxfalse
diagramWidth871
revision2

From one hand it seems extra to persist upper level nodes if these nodes are never requested. From other hand it could lead to data inconsistency
if the parent node being added after child nodes (C). The case  however can be resolved by existing data check before inserting new entries.

...