[ 
https://issues.apache.org/jira/browse/CAY-2363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16161072#comment-16161072
 ] 

Nikita Timofeev commented on CAY-2363:
--------------------------------------

This also affected {{EJBQL}} queries, added test case per 
https://github.com/apache/cayenne/commit/4a6241641f66a55b83f65e2b4c124e0f74d95121

> ColumnSelect: unable to use from nested context
> -----------------------------------------------
>
>                 Key: CAY-2363
>                 URL: https://issues.apache.org/jira/browse/CAY-2363
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.0.B1, 4.1.M1
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>             Fix For: 4.0.B2, 4.1.M1
>
>
> Queries like this always failing:
> {code}
> ObjectContext nested = runtime.newContext(parentContext);
> ObjectSelect.columnQuery(Artist.class, Artist.ARTIST_NAME).select(nested);
> {code}
> {{ObjectContextQueryAction}} tries to cast result to {{Persistent}} and that 
> is obviously invalid in this case.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to