Program: 66743
Project: 66743
Buggy source:
public TableDefinition buildROOTA_BRANCHATable(){
  TableDefinition table=new TableDefinition();
  table.setName("String_Node_Str");
  FieldDefinition fieldBRANCHA_ID=new FieldDefinition();
  fieldBRANCHA_ID.setName("String_Node_Str");
  fieldBRANCHA_ID.setTypeName("String_Node_Str");
  fieldBRANCHA_ID.setSize(0);
  fieldBRANCHA_ID.setSubSize(0);
  fieldBRANCHA_ID.setIsPrimaryKey(true);
  fieldBRANCHA_ID.setIsIdentity(false);
  fieldBRANCHA_ID.setUnique(false);
  fieldBRANCHA_ID.setShouldAllowNull(true);
  table.addField(fieldBRANCHA_ID);
  FieldDefinition fieldROOTA_ID=new FieldDefinition();
  fieldROOTA_ID.setName("String_Node_Str");
  fieldROOTA_ID.setTypeName("String_Node_Str");
  fieldROOTA_ID.setSize(0);
  fieldROOTA_ID.setSubSize(0);
  fieldROOTA_ID.setIsPrimaryKey(true);
  fieldROOTA_ID.setIsIdentity(false);
  fieldROOTA_ID.setUnique(false);
  fieldROOTA_ID.setShouldAllowNull(true);
  table.addField(fieldROOTA_ID);
  ForeignKeyConstraint foreignKeyROOTA_BRANCHA_BRANCHA=new ForeignKeyConstraint();
  foreignKeyROOTA_BRANCHA_BRANCHA.setName("String_Node_Str");
  foreignKeyROOTA_BRANCHA_BRANCHA.setTargetTable("String_Node_Str");
  foreignKeyROOTA_BRANCHA_BRANCHA.addSourceField("String_Node_Str");
  foreignKeyROOTA_BRANCHA_BRANCHA.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyROOTA_BRANCHA_BRANCHA);
  ForeignKeyConstraint foreignKeyROOTA_BRANCHA_ROOTA=new ForeignKeyConstraint();
  foreignKeyROOTA_BRANCHA_ROOTA.setName("String_Node_Str");
  foreignKeyROOTA_BRANCHA_ROOTA.setTargetTable("String_Node_Str");
  foreignKeyROOTA_BRANCHA_ROOTA.addSourceField("String_Node_Str");
  foreignKeyROOTA_BRANCHA_ROOTA.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyROOTA_BRANCHA_ROOTA);
  return table;
}

Fixed version (ground truth):
public TableDefinition buildROOTA_BRANCHATable(){
  TableDefinition table=new TableDefinition();
  table.setName("String_Node_Str");
  FieldDefinition fieldBRANCHA_ID=new FieldDefinition();
  fieldBRANCHA_ID.setName("String_Node_Str");
  fieldBRANCHA_ID.setTypeName("String_Node_Str");
  fieldBRANCHA_ID.setSize(0);
  fieldBRANCHA_ID.setSubSize(0);
  fieldBRANCHA_ID.setIsPrimaryKey(true);
  fieldBRANCHA_ID.setIsIdentity(false);
  fieldBRANCHA_ID.setUnique(false);
  fieldBRANCHA_ID.setShouldAllowNull(false);
  table.addField(fieldBRANCHA_ID);
  FieldDefinition fieldROOTA_ID=new FieldDefinition();
  fieldROOTA_ID.setName("String_Node_Str");
  fieldROOTA_ID.setTypeName("String_Node_Str");
  fieldROOTA_ID.setSize(0);
  fieldROOTA_ID.setSubSize(0);
  fieldROOTA_ID.setIsPrimaryKey(true);
  fieldROOTA_ID.setIsIdentity(false);
  fieldROOTA_ID.setUnique(false);
  fieldROOTA_ID.setShouldAllowNull(false);
  table.addField(fieldROOTA_ID);
  ForeignKeyConstraint foreignKeyROOTA_BRANCHA_BRANCHA=new ForeignKeyConstraint();
  foreignKeyROOTA_BRANCHA_BRANCHA.setName("String_Node_Str");
  foreignKeyROOTA_BRANCHA_BRANCHA.setTargetTable("String_Node_Str");
  foreignKeyROOTA_BRANCHA_BRANCHA.addSourceField("String_Node_Str");
  foreignKeyROOTA_BRANCHA_BRANCHA.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyROOTA_BRANCHA_BRANCHA);
  ForeignKeyConstraint foreignKeyROOTA_BRANCHA_ROOTA=new ForeignKeyConstraint();
  foreignKeyROOTA_BRANCHA_ROOTA.setName("String_Node_Str");
  foreignKeyROOTA_BRANCHA_ROOTA.setTargetTable("String_Node_Str");
  foreignKeyROOTA_BRANCHA_ROOTA.addSourceField("String_Node_Str");
  foreignKeyROOTA_BRANCHA_ROOTA.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyROOTA_BRANCHA_ROOTA);
  return table;
}