// 3. Get a list of some articles
Transaction tx = odmg.newTransaction();
tx.begin();
EnhancedOQLQuery query = odmg.newOQLQuery();
String sql = "select somePersons from " + Person.class.getName();
query.create(sql, start, end);
Collection somePersons = (Collection) query.execute();
// Iterator over the restricted articles objects
Iterator it = somePersons.iterator();
int count = 0;