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

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

GitHub user aarrsseni opened a pull request:

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

    CAY-2381 PKs for the entity problem

    

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

    $ git pull https://github.com/aarrsseni/cayenne generatePKproblem

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

    https://github.com/apache/cayenne/pull/249.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 #249
    
----
commit 639e3184885d74eacd18327fae98890e9d118537
Author: Arseni Bulatski <ancars...@gmail.com>
Date:   2017-11-29T07:01:20Z

    CAY-2381 PKs for the entity problem

----


> PKs for the entity problem
> --------------------------
>
>                 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
>              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)

Reply via email to