Uploaded image for project: 'Specification'
  1. SPEC-44

Add reverse ref from VERSION_REPOSITORY<T> to owner object

    Details

    • Change Description:
      Hide
      Add an attribute owner_id: OBJECT_REF to the class
      VERSION_REPOSITORY<T>. This attribute will be inherited into the
      classes VERSIONED_COMPOSITION and DIRECTORY, the latter two of
      which should also have the following invariant added:

      invariant
       owner_id.type.is_equal("EHR")
      Show
      Add an attribute owner_id: OBJECT_REF to the class VERSION_REPOSITORY<T>. This attribute will be inherited into the classes VERSIONED_COMPOSITION and DIRECTORY, the latter two of which should also have the following invariant added: invariant  owner_id.type.is_equal("EHR")
    • Approved By:
      PG

      Description

      Currently the class VERSION_REPOSITORY<T> does not
      include a foreign key attribute representing the id of the
      repository to which it belongs. Where objects of this class are
      logically part of a distinct repository such as a patient EHR,
      not having such an id may be dangerous if the database is
      corrupted, or if whole VERSION_REPOSITORY instances are sent to
      another location. It is also inconvenient when querying for
      VERSION_REPOSITORY instances not to have the foreign key of the
      owning repository.

        Attachments

          Activity

            People

            • Assignee:
              OLDthomasbeale JeffJ
              Reporter:
              OLDthomasbeale JeffJ
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: