You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2019/08/07 13:03:00 UTC

[jira] [Commented] (CAY-2604) Specialization of property API for PK

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

Nikita Timofeev commented on CAY-2604:
--------------------------------------

I've experimented with this and came up with notation for compound PK case: {{"@id:ARTIST_ID"}}

> Specialization of property API for PK
> -------------------------------------
>
>                 Key: CAY-2604
>                 URL: https://issues.apache.org/jira/browse/CAY-2604
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: cgen
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.2.M1
>
>
> Properties generated for PK in 4.1 has issues (see CAY-2565), so we need some logic to deal with them.
> Instead of using DbPath directly we can make special type of {{Property}} (probably {{IdProperty}}) to make them usable in all cases.
> Required cases to handle:
> - compatibility with {{dot()}} operator
> - in-memory sorting
> - in-memory evaluation
> My approach is to use special name {{"@id"}} as path for PK. Limitation - it will be unusable with compound PKs. 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)