Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COMy understanding is that you can retrieve the internal object (IMedicalNote) but only for readonly purpose. You're not supposed to make any modification to it. All modifications have to be made via the root so that it can control the integrity. Also, what do you mean by passing it back to the root? Once we modify the property of the child externally, then that's it, it's changed (by reference), bypassing the root, isnt it? What does "passing back to the root" do exactly?
      singulars
    2. COApologies, answer somewhat ambiguous. Root passes back copies of the objects which client then updates and passes back to root. Root then responsible for checking invariants & setting up relationships. Provides a sensible split of responsibility: root knows about relationships and constraints among aggregated objects but doesn't need to know details of all subtypes. Clients can operate on specific subtypes as required. Note Root might need to know some subtype details (e.g. if it must hold exactly one `BloodCheckNote` but could have many `TemperatureNote`s).
      singulars
    3. COYou mean to create a clone mechanism so that the root will always pass back a clone of each child-note when accessed via root's public getter? And then a way to copy these values back to its actual object once the client return these children back to the root. Just wanted to clarify if thats what you meant, because it sounds like quite a bit of work. Cheers
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload