You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Arseni Bulatski (JIRA)" <ji...@apache.org> on 2017/11/29 06:33:00 UTC

[jira] [Created] (CAY-2381) PKs for the entity problem

Arseni Bulatski created CAY-2381:
------------------------------------

             Summary: 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
             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)