3435363738394041424344
public void testMergeOfLazyFields() { EntityManager em = emf.createEntityManager(); try { em.getTransaction().begin(); Outer o1 = new Outer(); Inner i1 = new Inner(); o1.setInners(new ArrayList<Inner>()); o1.getInners().add(i1); em.persist(o1);