We're updating the issue view to help you get more done.Learn more

Add reverse ref from VERSION_REPOSITORY<T> to owner object

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.

Status

Assignee

JeffJ

Reporter

JeffJ

Change Description

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

Fix versions

Priority

Minor