SelectQuery query = new SelectQuery(Artist.class);
query.andQualifier(ExpressionFactory.matchExp("p1.paintingTitle", "X"));
query.andQualifier(ExpressionFactory.matchExp("p2.paintingTitle", "Y"));
query.aliasPathSplits("paintingArray", "p1", "p2");
List<Artist> artists = context.performQuery(query);
assertEquals(1, artists.size());
assertEquals("BB", artists.get(0).getArtistName());
}