>> While this doesn’t: >> >> SelectQuery<DataRow> q = SelectQuery.dataRowQuery( SMReceipt.class ); >> q.addPrefetch( SMReceipt.SHOP.getName() ); >> List<DataRow> list = objectContext.select( q ); >> >> Should I file a bug report? > > Very surprising. This should generate a "disjoint" prefetch (i.e. a query #2, > fetching Shop objects). And I am certain that we have dozens of unit tests > for it. But yeah, if it is broken, please open a Jira, including generated > SQL if possible.
I was ablet o reproduce this in a different relationship so I filed an issue: https://issues.apache.org/jira/browse/CAY-1996 <https://issues.apache.org/jira/browse/CAY-1996> . > BTW, feel free to use ObjectSelect query, which a "fluent" analog of > SelectQuery in M2. Ah, very nice! - hugi