EnhancedOQLQuery query = odmg.newOQLQuery();
String sql =
"select somePersons from "
+ org.apache.ojb.broker.Person.class.getName();
query.create(sql, start, end);
query.execute();
fail("should have thrown QueryInvalidException");
}
catch (QueryInvalidException iqe)
{
// we wait for this exception