[
https://issues.apache.org/jira/browse/CAY-2675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikita Timofeev closed CAY-2675.
--------------------------------
Resolution: Fixed
https://github.com/apache/cayenne/commit/c1f9be0ca4688fa96403910fadbeb69f4d39abb9
Note about the fix: there is really one line fix in the
{{DataRowUtils.hasFK()}} method, the rest is just tests and formatting.
> A one-to-one relationship with meaningful PK can be nullified in the nested
> context.
> ------------------------------------------------------------------------------------
>
> Key: CAY-2675
> URL: https://issues.apache.org/jira/browse/CAY-2675
> Project: Cayenne
> Issue Type: Bug
> Components: Core Library
> Affects Versions: 4.2.M1
> Reporter: Nikita Timofeev
> Assignee: Nikita Timofeev
> Priority: Major
> Fix For: 4.2.M2
>
>
> This is a tricky issue with multiple prerequisites:
> * one-to-one relationship with join containing meaningful PK
> * uncommitted objects pushed from the root to the nested context
> This one-to-one relationship could be nullified when an uncommitted object is
> invalidated in the nested context.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)