ds.put(e);
beginTxn();
Query q = em.createQuery("select from " + parentClass.getName() + " b where aString = :p");
q.setParameter("p", "z8");
Parent parent = (Parent) q.getSingleResult();
assertEquals(parentClass, parent.getClass());
assertEquals("z8", parent.getAString());
q = em.createQuery("select from " + parentClass.getName() + " b where aString >= :p order by aString desc");
q.setParameter("p", "z8");
List<Parent> parents = q.getResultList();
assertEquals("z9", parents.get(0).getAString());