cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAY-2146) Vertical inheritance: record still inserted into parent db table when child validation fails
Date Sun, 27 Nov 2016 13:44:59 GMT

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

Andrus Adamchik commented on CAY-2146:
--------------------------------------

applied the patch. Did some refactoring for code clarity, without changing the logic. Looks
like it does the right thing.

> Vertical inheritance: record still inserted into parent db table when child validation
fails
> --------------------------------------------------------------------------------------------
>
>                 Key: CAY-2146
>                 URL: https://issues.apache.org/jira/browse/CAY-2146
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.0.M3
>            Reporter: Dzmitry Kazimirchyk
>            Assignee: Nikita Timofeev
>             Fix For: 4.0.M4
>
>         Attachments: vertical_inheritance_missing_child_test.patch
>
>
> When using vertical inheritance, if a child record has a mandatory relationship which
is not set, commit will still go through without any errors. However, in database it will
create only a record in the parent table without a corresponding child record.
> Attaching patch with a unit test demonstrating the issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message