cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (Jira)" <j...@apache.org>
Subject [jira] [Closed] (CAY-2652) New flush action: unable to use meaningful FK mapped to primitive type
Date Fri, 03 Apr 2020 11:57:00 GMT

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

Nikita Timofeev closed CAY-2652.
--------------------------------
    Resolution: Fixed

> New flush action: unable to use meaningful FK mapped to primitive type
> ----------------------------------------------------------------------
>
>                 Key: CAY-2652
>                 URL: https://issues.apache.org/jira/browse/CAY-2652
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.2.M1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Meaningful FK mapped to a primitive type always results in 0 value in the database. This
is because primitive types create attribute change in the diff (from {{null}} to {{0}}) and
that diff operation overrides FK change operation (this is what actually changed in the new
implementation).



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

Mime
View raw message