cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAY-2369) Compatibility issue with field-based data objects
Date Wed, 27 Sep 2017 11:43:03 GMT

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

ASF GitHub Bot commented on CAY-2369:
-------------------------------------

GitHub user stariy95 opened a pull request:

    https://github.com/apache/cayenne/pull/243

    CAY-2369 Compatibility issue with field-based data objects

    See [CAY-2369](https://issues.apache.org/jira/browse/CAY-2369)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/stariy95/cayenne 4.1-nullable-primitives

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cayenne/pull/243.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #243
    
----
commit f61b163b99733c14ffd7530eb2f3d0dfbdd53960
Author: Nikita Timofeev <stariy95@gmail.com>
Date:   2017-09-27T10:05:25Z

    Use boxed types for nullable primitive fields

commit 6c871b3f68294a909b5feb573e237cd0fada753e
Author: Nikita Timofeev <stariy95@gmail.com>
Date:   2017-09-27T11:11:04Z

    Use boxed types for nullable primitive fields

----


> Compatibility issue with field-based data objects
> -------------------------------------------------
>
>                 Key: CAY-2369
>                 URL: https://issues.apache.org/jira/browse/CAY-2369
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 4.1.M1
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>              Labels: pull-request-available
>             Fix For: 4.1.M1
>
>
> This one is from [dev@list|https://lists.apache.org/thread.html/72ba8d1c42fd9064652e7ff04647383e1777e1326a0ceeffaedfe87c@%3Cdev.cayenne.apache.org%3E].
> Data inserted in _4.0_ can't be updated in _4.1_ if optimistic locking for nullable attribute
mapped on java primitive type is used. This is because version _4.1_ use field-based data
objects that store primitive as primitive, thus there can't be _nulls_.
> Can be solved by modifying *cgen* templates to use boxed type internally for nullable
attributes.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message