Versions Compared

Key

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

...

* REMEMBER: This is a hash code of an object that was calculated and saved on the last pull of this object from Parent. This hash code is stored in a separate table than pulled object.

** See See Merge

PUSH:

  • RULE 2

    If hash code of an object on Parent instance is NOT equal to hash code of an object on Child instance* it means that the object was updated on Parent instance after the last pull to Child (we are pushing modifications of outdated version of object) → 

    • if object on Child instance was NOT modified (calculated hash code of modified object is equal to hash code saved on Child's instance*) → PUSH operation of this object will not take place

    • if object on Child instance was modified (calculated hash code of modified object is NOT equal to hash code saved on Child's instance*) → 
      • these two objects have to be merged**, then
      • saved on Child and Parent instance;
      • hashcodeshash codes on both Child and Parent instance have to be updated.


* REMEMBER: This is a hashcodehash code of an object that was calculated and saved on the last pull of this object from Parent. This hash code is stored in a separate table than pulled object.

...