Andrus Adamchik created CAY-3008:
------------------------------------

             Summary: 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


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