pm.makePersistent(item1);
pm.makePersistent(item2);
pm.makePersistent(item3);
tx.commit();
tx.begin();
<BUG>Query q = pm.newQuery(ReachableItem.class,
"this.name == pA.firstName && pA.firstName == theName && pA.age == 28");
</BUG>
q.declareParameters("String theName");
q.declareVariables(Person.class.getName() + " pA");

pm.makePersistent(item1);
pm.makePersistent(item2);
pm.makePersistent(item3);
tx.commit();
tx.begin();
Query q = pm.newQuery(ReachableItem.class, "this.name == pA.firstName && pA.firstName == theName && pA.age == 28");
q.declareParameters("String theName");
q.declareVariables(Person.class.getName() + " pA");
