You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Dzmitry Kazimirchyk (JIRA)" <ji...@apache.org> on 2016/11/15 19:03:58 UTC
[jira] [Created] (CAY-2146) Vertical inheritance: record still
inserted into parent db table when child validation fails
Dzmitry Kazimirchyk created CAY-2146:
----------------------------------------
Summary: 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
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)