Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-4043

Add support for bidirectional relationships

    Details

      Description

      Relationships are currently represented in a single direction from first to second object. Users may currently have a "roles" relationship attribute which they can be assigned roles. When a user is associated with a role a new relationship object is created with a firstId of the user and secondId of the role. We would like to add support for inverse relationships that would allow for a "members" field to be added to roles that would find any users that had been associated with this role via the previously described relationship.

      This will require the addition of a secondPropertyName field to the relationship table and a new schema field type of inverse_relationship (name tbd). While standard relationships operate primarily on the firstId field the new inverse relationship would operate against the secondId field.

        Attachments

          Activity

            People

            • Assignee:
              jim.mitchener Jim Mitchener
              Reporter:
              jim.mitchener Jim Mitchener
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: