You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Jurgen Doll (Jira)" <ji...@apache.org> on 2024/05/07 16:53:00 UTC

[jira] [Commented] (CAY-2853) Incorrect deletion of entities from flattened attributes

    [ https://issues.apache.org/jira/browse/CAY-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17844385#comment-17844385 ] 

Jurgen Doll commented on CAY-2853:
----------------------------------

Submitted [PR|https://github.com/apache/cayenne/pull/614/files]

> Incorrect deletion of entities from flattened attributes
> --------------------------------------------------------
>
>                 Key: CAY-2853
>                 URL: https://issues.apache.org/jira/browse/CAY-2853
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.2, 5.0-M2
>            Reporter: Jurgen Doll
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)