.table("order").colInt("oid").colInt("c2").colInt("c_id").pk("oid", "c2").key("c_id", "c_id").joinTo("customer").on("c_id", "cid")
.table("item").colInt("iid").colInt("o_id").colInt("o_c2").key("o_id", "o_id", "o_c2").joinTo("order").on("o_id", "oid").and("o_c2", "c2")
.table("address").colInt("aid").colInt("c_id").key("c_id", "c_id").joinTo("customer").on("c_id", "cid")
.ais();
Group cGroup = ais.getGroup(new TableName("sch", "customer"));
Table cTable = ais.getTable("sch", "customer");
Table aTable = ais.getTable("sch", "address");
Table oTable = ais.getTable("sch", "order");
Table iTable = ais.getTable("sch", "item");
assertNotNull("customer group", cGroup);
assertEquals("customer group root", cGroup.getRoot(), cTable);
assertEquals("address parent", cTable, aTable.getParentJoin().getParent());
assertEquals("address join", "[JoinColumn(c_id -> cid)]", aTable.getParentJoin().getJoinColumns().toString());
assertEquals("order parent", cTable, oTable.getParentJoin().getParent());