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

Incorrect deletion of entities from flattened attributes

    XMLWordPrintableJSON

Details

    Description

      When deleting an ObjEntity with flattened attributes Cayenne deletes the related DB attribute's row as well.

      So if we have for example an ObjEntity "FlatPainting" with flattened attribute "galleryName". If we then delete a "FlatPainting" then the associated gallery will also be deleted, leaving all other paintings at that gallery without a valid Gallery link.

      Furthermore if we add to our "FlatPainting" a "gallery" relationship attribute with delete rule Deny, the gallery is still deleted.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jurgen Jurgen Doll
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3.5h
                3.5h