[ https://issues.apache.org/jira/browse/CAY-2369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16189421#comment-16189421 ]
ASF GitHub Bot commented on CAY-2369: ------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/cayenne/pull/243 > 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)