4142434445464748495051
EntityA a = new EntityA(); EntityB b = new EntityB(a); // set back pointer a.getBs().add(b); EntityC c = new EntityC(b); // set back pointer b.getCs().add(c); em.persist(a); em.persist(b);
4445464748495051525354