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] [Created] (CAY-2604) Specialization of property API for PK
Date Wed, 07 Aug 2019 11:15:00 GMT
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)

Mime
View raw message