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

In-memory evaluation of DB expressions - non-id attributes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.M3
    • Component/s: None
    • Labels:
      None

      Description

      This is a minor improvement to Cayenne DB expressions evaluation capabilities. When evaluating a "db:" expression against a Persistent object, something like "db:id" currently returns a value of a PK column, but if a DB column name is not a part of the ID (e.g. "db:name"), it evaluates to NULL. There is a TODO in ASTDbPath to that extent. So let's support evaluation of path's corresponding to DbAttributes.

        Attachments

          Activity

            People

            • Assignee:
              andrus Andrus Adamchik
              Reporter:
              andrus Andrus Adamchik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: