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

Problem with not to PK relationships

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 5.0-M1
    • Core Library
    • None

    Description

      Problem with not to PK relationships was found.

      • create relationship with join not to PK (target or source attribute isn't PK) in modeler
      • create entities
      • create relationship between entities
      • commit changes

      In database objects will be created, but relationship won't be created. So you can't be able to get joined objects.

      This happens because in you can't create arcDiff.

      Look DataDomainDBDiffBuilder arcCreated method and appendForeignKeys method.

      In current logic you can get only PK attribute value from ObjectId.

      First step is to add validation of this case to prevent creation of this relationship.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aarrsseni Arseni Bulatski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: