You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (Jira)" <ji...@apache.org> on 2024/03/06 08:06:00 UTC

[jira] [Assigned] (CAY-2848) Vertical Inheritance: Updating one-to-many with inverse nullifies other columns.

     [ https://issues.apache.org/jira/browse/CAY-2848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nikita Timofeev reassigned CAY-2848:
------------------------------------

    Assignee: Nikita Timofeev

> Vertical Inheritance: Updating one-to-many with inverse nullifies other columns.
> --------------------------------------------------------------------------------
>
>                 Key: CAY-2848
>                 URL: https://issues.apache.org/jira/browse/CAY-2848
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 4.2
>            Reporter: Jadon Hansell
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.2.1, 5.0-M1
>
>         Attachments: update-flattened-relationship-nullify-other-columns.patch
>
>
> When there is a one-to-many relationship on the child DbEntity of a vertical inheritance scenario, giving it an inverse fails when the relationship is updated to anything non-null.
> An update query is issued that contains the PK of the child row and the new ID for the relationship, but sets every other column to null. I've included a breaking test as a patch in 4.2-STABLE.



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