public final String name_B0_cvarbinary_def;
public final String name_B0_cvarchar_def;
// initialize this instance from the dictionary
public Model(Ndb ndb) throws NdbApiException {
final NdbDictionary dict = ndb.getDictionary();
// get columns of table A
if ((table_A = dict.getTable("a")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_A_id = table_A.getColumn("id")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_A_cint = table_A.getColumn("cint")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_A_clong = table_A.getColumn("clong")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_A_cfloat = table_A.getColumn("cfloat")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_A_cdouble = table_A.getColumn("cdouble")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
// get columns of table B0
if ((table_B0 = dict.getTable("b0")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_B0_id = table_B0.getColumn("id")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_B0_cint = table_B0.getColumn("cint")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_B0_clong = table_B0.getColumn("clong")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_B0_cfloat = table_B0.getColumn("cfloat")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_B0_cdouble = table_B0.getColumn("cdouble")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_B0_a_id = table_B0.getColumn("a_id")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_B0_cvarbinary_def = table_B0.getColumn("cvarbinary_def")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
if ((column_B0_cvarchar_def = table_B0.getColumn("cvarchar_def")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
// get indexes of table B0
if ((idx_B0_a_id = dict.getIndex("I_B0_FK", "b0")) == null)
throw new RuntimeException(toStr(dict.getNdbError()));
// get common attribute ids for tables A, B0
attr_id = column_A_id.getColumnNo();
if (attr_id != column_B0_id.getColumnNo())
throw new RuntimeException("attribute id mismatch");