MtTable1.class,
new ClientChannelServerDiffsListener1(),
"prePersistAddRelationship");
ClientServerChannel csChannel = new ClientServerChannel(getDomain());
ClientChannel channel = new ClientChannel(new LocalConnection(csChannel));
CayenneContext context = new CayenneContext(channel);
ClientMtTable1 o = context.newObject(ClientMtTable1.class);
ClientMtTable2 o1 = context.newObject(ClientMtTable2.class);
o.addToTable2Array(o1);
context.commitChanges();