// 3. Get a list of some articles
Transaction tx = odmg.newTransaction();
tx.begin();
EnhancedOQLQuery query = odmg.newOQLQuery();
String sql =
"select somePersons from "
+ org.apache.ojb.broker.Person.class.getName();
query.create(sql, start, end);
ManageableCollection somePersons =
(ManageableCollection) query.execute();
// Iterator over the restricted articles objects
java.util.Iterator it = somePersons.ojbIterator();
int count = 0;
while (it.hasNext())