Persitent type used in testing.
4647484950515253545556
startTx(em); runt1 = new RuntimeTest1(1); runt1.setStringField("runt1"); runt1.setSelfOneOne(new RuntimeTest1(2)); runt2 = new RuntimeTest2(3); runt2.setStringField("runt2"); ent = new Entity1(23, "UPDATEST", 100); em.persist(runt1);
164165166167168169170171172173174
public void testQueryResultSizeIsCorrect() { OpenJPAEntityManager em = (OpenJPAEntityManager) currentEntityManager(); startTx(em); em.persist(new RuntimeTest2("TestQueryResults1", 10)); endTx(em); endEm(em); em = (OpenJPAEntityManager) currentEntityManager(); startTx(em);
4748495051525354555657
rt.setStringField("foo " + i); em.persist(rt); } for (int i = 10; i < run2; i++) { em.persist(new RuntimeTest2(i)); } endTx(em); endEm(em); }
166167168169170171172173174175176