Table sst = getSchema().newTable("SUBSUB");
StringColumn sstId = (StringColumn) sst.newColumn("ID", Column.Type.VARCHAR);
sstId.setLength(32);
Column sstMtId = sst.newColumn("MTID", Column.Type.BIGINT);
Column sstMtVer = sst.newColumn("MTVER", Column.Type.INTEGER);
ForeignKey foreignKeySt = sst.newForeignKey(getMainTable());
foreignKeySt.addColumnLink(sstMtId, getMainTable().getColumn("ID"));
foreignKeySt.addColumnLink(sstMtVer, getMainTable().getColumn("VER"));
StringColumn sstStId = (StringColumn) sst.newColumn("SSTID", Column.Type.VARCHAR);