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

Support for collections in new functional expressions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.M5
    • Component/s: Core Library
    • Labels:
      None

      Description

      New functional expressions doesn't work with ToMany collections.
      For example this will fail with ExpressionException:

      Expression exp = Artist.PAINTING_ARRAY
           .dot(Painting.PAINTING_TITLE)
           .substring(1, 1)
           .getExpression();
              
      Artist artist = ObjectSelect.query(Artist.class)
           .orderBy("db:ARTIST_ID")
           .selectFirst(context);
      
      Object res = exp.evaluate(artist);
      

        Attachments

          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: