You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (Jira)" <ji...@apache.org> on 2026/08/30 21:15:00 UTC
[jira] [Created] (CAY-3008) Disjoint prefetch returns wrong results when the query matches on a "self" property
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)