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 11:15:00 UTC
[jira] [Created] (CAY-2604) Specialization of property API for PK
Nikita Timofeev created CAY-2604:
------------------------------------
Summary: 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
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)