You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (Jira)" <ji...@apache.org> on 2020/10/03 07:59:00 UTC

[jira] [Updated] (CAY-2682) Vertical Inheritance: DB-generated PK doesn't propagate from the root to children

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

Andrus Adamchik updated CAY-2682:
---------------------------------
    Fix Version/s:     (was: 4.1.1)
                   4.2.M2

We had some issues with the [https://github.com/apache/cayenne/pull/436|http://example.com] (PropagatedValueFactory was treated as the real column value in some of our tests), I discussed it with Nikita and I just unrolled the PR on 4.1 branch. I kept the test though with "@Ignored" annotation.

At the same time it works in 4.2 because of unrelated stack improvements, so I ported the test to 4.2 and marked it as fixed there. So in 4.1 it will stay as a "known issue".

> Vertical Inheritance: DB-generated PK doesn't propagate from the root to children
> ---------------------------------------------------------------------------------
>
>                 Key: CAY-2682
>                 URL: https://issues.apache.org/jira/browse/CAY-2682
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.0.2, 4.1
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.2.M2
>
>
> In the vertical inheritance setup, if the root entity has DB-generated PK it doesn't propagate to subclasses. Insert fails with SQL error as PK is NULL in the subclass table.
> This works in Cayenne 4.2 as it has new {{FlushAction}} implementation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)