EJBQLQuery ejbql = new EJBQLQuery("select a from Artist a");
ejbql.setStatementFetchSize(10);
assertEquals(10, ejbql.getMetaData(dataContext.getEntityResolver()).getStatementFetchSize());
dataContext.performQuery(ejbql);
ObjectId id = new ObjectId("Artist", Artist.ARTIST_ID_PK_COLUMN, 1);
RelationshipQuery relationshipQuery = new RelationshipQuery(id, Artist.PAINTING_ARRAY_PROPERTY, true);
relationshipQuery.setStatementFetchSize(10);