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

Support for collections in new functional expressions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.M5
    • Core Library
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: