ObjectSet result = query.execute();
listResult(result);
}
public static void retrieveByDefaultFieldValue(ObjectContainer db) {
Pilot somebody = new Pilot("Somebody else", 0);
db.set(somebody);
Query query = db.query();
query.constrain(Pilot.class);
query.descend("points").constrain(new Integer(0));
ObjectSet result = query.execute();