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

Andrus Adamchik closed CAY-3008.
--------------------------------
    Resolution: Fixed

> Disjoint prefetch returns wrong results when the query matches on a "self" 
> property
> -----------------------------------------------------------------------------------
>
>                 Key: CAY-3008
>                 URL: https://issues.apache.org/jira/browse/CAY-3008
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Andrus Adamchik
>            Priority: Minor
>
> Description
> {noformat}
> // artist 3 has two paintings
> Artist a = ObjectSelect.query(Artist.class)
>               .where(Artist.SELF.eqId(3))
>               .prefetch(Artist.PAINTING_ARRAY.disjoint())
>               .selectOne(context);
> a.getPaintingArray();
> {noformat}
>   Expected: the two paintings of artist 3.
>   Actual: an empty list, with no exception.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to