Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2604

Specialization of property API for PK

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.M1
    • Component/s: cgen
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ntimofeev Nikita Timofeev
                Reporter:
                ntimofeev Nikita Timofeev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m