55565758596061626364656667
Employee e1 = context.newObject(Employee.class); e1.setName("E1"); e1.setPersonType("EE"); d1.addToEmployees(e1); Manager e2 = context.newObject(Manager.class); e2.setName("E2"); e2.setPersonType("EM"); d1.addToEmployees(e2); context.commitChanges(); // need to make sure source relationship is resolved as a result of some Ashwood
105106107108109110111112113114115116117