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

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

*4.2*: 
https://github.com/apache/cayenne/commit/a97b04d33265faf28f0ece0f907e0eb569ab4c0c
*5.0*: 
https://github.com/apache/cayenne/commit/bd0bf2687b373704bcb53997fc98e626f4a6c164

> DbEntity to ObjEntity synchronization should check mandatory flag for 
> primitive java types
> ------------------------------------------------------------------------------------------
>
>                 Key: CAY-2783
>                 URL: https://issues.apache.org/jira/browse/CAY-2783
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: dbimport, Modeler
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.2, 5.0.M1
>
>
> Logic that creates {{Obj}} layer from the {{DB}} is not using mandatory flag 
> and just always uses primitive types if possible.
> On the other hand {{cgen}} tries to use Object types if field is nullable.
> We should unify logic of these operations and always check nullability of the 
> field.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to