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] [Assigned] (CAY-2381) cgen: meaningful PK with boxed type ends up with primitive type in generated source
Date Fri, 08 Dec 2017 08:34:00 GMT

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

Nikita Timofeev reassigned CAY-2381:
------------------------------------

    Assignee: Nikita Timofeev

> cgen: meaningful PK with boxed type ends up with primitive type in generated source
> -----------------------------------------------------------------------------------
>
>                 Key: CAY-2381
>                 URL: https://issues.apache.org/jira/browse/CAY-2381
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.1.M1
>            Reporter: Arseni Bulatski
>            Assignee: Nikita Timofeev
>              Labels: pull-request-available
>             Fix For: 4.1.M2
>
>
> If you have: 
> 1) modeled a primary key as an ObjAttribute, like customerPK 
> 2) modeled it as an object type, like java.lang.Long 
> 3) are using the Cayenne-Generated (Default) PK generation strategy
> Then Cayenne won't generate any PKs for the entity and will just use zero over and over.
This can be worked around by switching the attribute's type to a primitive (like long).



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

Mime
View raw message