AkibanInformationSchema ais = ais(
"CREATE TABLE c(cid INT PRIMARY KEY NOT NULL, name VARCHAR(128));" +
"CREATE TABLE o(oid INT PRIMARY KEY NOT NULL, cid INT, GROUPING FOREIGN KEY(cid) REFERENCES c(cid));" +
"CREATE TABLE i(iid INT PRIMARY KEY NOT NULL, oid INT, GROUPING FOREIGN KEY(oid) REFERENCES o(oid), sku VARCHAR(16));");
Group coi = ais.getGroup(new TableName(SCHEMA, "c"));
RowDef cRowDef = ais.getTable(new TableName(SCHEMA, "c")).rowDef();
RowDef oRowDef = ais.getTable(new TableName(SCHEMA, "o")).rowDef();
RowDef iRowDef = ais.getTable(new TableName(SCHEMA, "i")).rowDef();
ProtobufRowDataConverter converter = converter(coi);
encodeDecode(ais, converter, cRowDef,
1L, "Fred");
encodeDecode(ais, converter, oRowDef,
101L, 1L);