OQLQuery query = odmg.newOQLQuery();
int i = 0;
query.create("select effectiveness from " + Effectiveness.class.getName() + " where version.contract.contractValue1=$1");
query.bind("contractvalue1");
ManageableCollection all = (ManageableCollection) query.execute();
java.util.Iterator it = all.ojbIterator();
Effectiveness temp = null;
while (it.hasNext())
{
temp = (Effectiveness) it.next();
if (!temp.getVersion().getContract().getContractValue1().equals("contractvalue1"))