Collection runtime1s = (Collection) pm
.createQuery("SELECT a FROM RuntimeTest1 a").getResultList();
for (Iterator itr = runtime1s.iterator(); itr.hasNext();)
temp1 = (RuntimeTest1) itr.next();
RuntimeTest2 temp2;
Collection runtime2s = (Collection) pm
.createQuery("SELECT a FROM RuntimeTest2 a").getResultList();
for (Iterator itr = runtime2s.iterator(); itr.hasNext();)
temp2 = (RuntimeTest2) itr.next();