common2.setName("wwww");
common2.setDiff("wwww");
common2.setNum(56);
mgr.put(common2);
InheritanceToManySpecific ent1 = new InheritanceToManySpecific();
ent1.addSomething(common);
ent1.addSomething(common2);
mgr.put(ent1);
mgr.flush();
InheritanceToManySpecific result1 = mgr.find(InheritanceToManySpecific.class, ent1.getId());
Assert.assertEquals(2, result1.getInheritance().size());
InheritanceSub1 sub1 = result1.getInheritance().get(0);
//read the other row in
sub1.getName();
}