//test for CAY-1313
public void testRelationshipWhereClauseAndToEJBQL() throws Exception {
ObjectContext context = createDataContext();
Expression exp = ExpressionFactory.matchExp(Painting.TO_GALLERY_PROPERTY, null);
EJBQLQuery query = new EJBQLQuery("select p.toArtist from Painting p where " + exp.toEJBQL("p"));
context.performQuery(query);
}
public void testOrBrackets() throws Exception {