cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAY-2363) ColumnSelect: unable to use from nested context
Date Mon, 11 Sep 2017 10:54:00 GMT

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

Nikita Timofeev closed CAY-2363.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 4.1.M1
                   4.0.B2

*4.1*: https://github.com/apache/cayenne/commit/518eb2fe495a5dd22c4b95958fba79f7821d49ae
*4.0*: https://github.com/apache/cayenne/commit/a07482cc38661a227ee94a3ee2d140b6b794a912

> 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)

Mime
View raw message