You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2017/02/15 14:50:41 UTC
[jira] [Created] (CAY-2231) Support for collections in new
functional expression
Nikita Timofeev created CAY-2231:
------------------------------------
Summary: Support for collections in new functional expression
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)