[ 
https://issues.apache.org/jira/browse/CAY-2231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Timofeev closed CAY-2231.
--------------------------------
    Resolution: Fixed

https://github.com/apache/cayenne/commit/2667f0126a6a2a3abafbb174898998aae66e8a80

> Support for collections in new functional expressions
> -----------------------------------------------------
>
>                 Key: CAY-2231
>                 URL: https://issues.apache.org/jira/browse/CAY-2231
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>             Fix For: 4.0.M5
>
>
> New functional expressions doesn't work with ToMany collections.
> For example this will fail with ExpressionException:
> {code}
> 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);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to