Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2133

ObjectNameGenerator refactoring - unifying relationship name generation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.M4
    • None
    • None

    Description

      Will need to refactor ObjectNameGenerator API, mainly focusing on relationship name generation. The new API will generate both obj and db relationship names in a single method. We will no longer distinguish between the two, as DbRelationship name does not correspond to any actual name found in the database, and we might as well use the object layer name. The main visible change in the algorithm is that ObjRelationship name will be based on DbRelationship semantics, not on DbRelationship name.

      In the future if this proves to be too limiting, we might split a separate DbRelationship name generator. For now it will allow to avoid passing ExportedKey object to the strategy, and make it private.

      As a part of this task we will remove LegacyObjectNameGenerator that uses different assumptions.

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: