// query with to-many joint prefetches and qualifier that doesn't match
// prefetch....
Expression qualifier = ExpressionFactory.matchExp(
Artist.ARTIST_NAME_PROPERTY,
"artist1");
SelectQuery q = new SelectQuery(Artist.class, qualifier);
q.addPrefetch(Artist.PAINTING_ARRAY_PROPERTY).setSemantics(
PrefetchTreeNode.JOINT_PREFETCH_SEMANTICS);
DataContext context = createDataContext();
List objects = context.performQuery(q);