4445464748495051525354555657585960616263646566
o1.setName("o1"); CrossdbM2E1 o2 = context.newObject(CrossdbM2E1.class); o2.setName("o2"); CrossdbM2E2 o3 = context.newObject(CrossdbM2E2.class); o3.setName("o3"); o3.setToM1E1(o1); o3.setToM2E1(o2); context.commitChanges(); // update CrossdbM1E1 o11 = context.newObject(CrossdbM1E1.class); o11.setName("o11"); o3.setToM1E1(o11); context.commitChanges(); // update with existing o3.setToM1E1(o1); context.commitChanges(); }
4243444546474849505152535455565758596061626364