partial3.setPk2(4);
NonPKJoinPC nonpk = new NonPKJoinPC();
nonpk.setId1(1);
nonpk.setId2(2);
NonPKJoinPC2 nonpk2 = new NonPKJoinPC2();
nonpk2.setId1(2);
nonpk2.setId2(3);
NonPKJoinPC3 nonpk3 = new NonPKJoinPC3();
nonpk3.setId1(3);
nonpk3.setId2(4);
partial.setNonPK(nonpk);
partial.getNonPKs().add(nonpk);
nonpk.setPartial(partial);
nonpk.getPartials().add(partial);
partial3.setNonPK(nonpk);
partial3.setNonPK3(nonpk3);
partial3.getNonPKs().add(nonpk);
partial3.getNonPK2s().add(nonpk2);
nonpk3.setPartial(partial);
nonpk3.setPartial3(partial3);
nonpk3.getPartials().add(partial);
nonpk3.getPartial2s().add(partial2);
ConstantJoinPC2 constant2 = new ConstantJoinPC2();
constant2.setPk1(1);
constant2.setPk2(2);
constant2.setNonPK(nonpk3);
constant2.setNonPK2(nonpk3);
// set the object's inverse on diff objects so we can be sure
// that its 1-many includes only the object with the right constant
nonpk.setConstant(constant2);
nonpk2.setConstant(constant2);
nonpk3.setConstant(constant2);
ConstantJoinPC3 constant3 = new ConstantJoinPC3();
constant3.setPk1(1);
constant3.setPk2(3);