Buggy code:
public class AdvancedTableCreator extends TogglingFastTableCreator { public AdvancedTableCreator ( ) { } public TableDefinition buildADDRESSTable ( ) { } public TableDefinition buildBUYERTable ( ) { } public TableDefinition buildCONCURRENCYATable ( ) { } public TableDefinition buildCONCURRENCYBTable ( ) { } public TableDefinition buildCONCURRENCYCTable ( ) { } public TableDefinition buildCREDITCARDSTable ( ) { } public TableDefinition buildCREDITLINESTable ( ) { } public TableDefinition buildCUSTOMERTable ( ) { } public TableDefinition buildDEALERTable ( ) { } public TableDefinition buildDEPTTable ( ) { } public TableDefinition buildDEPT_EMPTable ( ) { } public TableDefinition buildEMPLOYEETable ( ) { } public TableDefinition buildEQUIPMENTTable ( ) { } public TableDefinition buildGOLFERTable ( ) { } public TableDefinition buildGolfer_SPONSORDOLLARSTable ( ) { } public TableDefinition buildEQUIPMENTCODETable ( ) { } public TableDefinition buildHUGEPROJECTTable ( ) { } public TableDefinition buildLARGEPROJECTTable ( ) { } public TableDefinition buildLOOTTable ( ) { } public TableDefinition buildMANTable ( ) { } public TableDefinition buildPARTNERLINKTable ( ) { } public TableDefinition buildPHONENUMBERSTATUSTable ( ) { } public TableDefinition buildPHONENUMBERTable ( ) { } public TableDefinition buildPLATINUMBUYERTable ( ) { } public TableDefinition buildPROJECT_EMPTable ( ) { } public TableDefinition buildPROJECT_PROPSTable ( ) { } public TableDefinition buildPROJECTTable ( ) { } public TableDefinition buildRESPONSTable ( ) { } public TableDefinition buildSALARYTable ( ) { } public TableDefinition buildRABBITTable ( ) { } public TableDefinition buildRABBITFOOTTable ( ) { } public TableDefinition buildFOODTable ( ) { } public TableDefinition buildSANDWICHTable ( ) { } public TableDefinition buildPERSONTable ( ) { } public TableDefinition buildEATERTable ( ) { } public TableDefinition buildSCHOOLTable ( ) { } public TableDefinition buildSTUDENTTable ( ) { } public TableDefinition buildBOLTTable ( ) { } public TableDefinition buildNUTTable ( ) { } public TableDefinition buildVEGETABLETable ( ) { } public TableDefinition buildVIOLATIONTable ( ) { } public TableDefinition buildVIOLATIONCODETable ( ) { } public TableDefinition buildVIOLATIONCODESTable ( ) { } public TableDefinition buildWOMANTable ( ) { } public TableDefinition buildWORKWEEKTable ( ) { } public TableDefinition buildWORLDRANKTable ( ) { } public TableDefinition buildREADONLYISOLATED ( ) { } public TableDefinition buildENTITYBTable ( ) { } public TableDefinition buildENTITYATable ( ) { } public TableDefinition buildENTITYDTable ( ) { } public TableDefinition buildENTITYCTable ( ) { } public TableDefinition buildADVENTITYAENTITYDTable ( ) { } public TableDefinition buildENTITYETable ( ) { } public TableDefinition buildADVENTITYAENTITYETable ( ) { } public TableDefinition buildADVSIMPLEENTITYTable ( ) { } public TableDefinition buildADVECSIMPLETable ( ) { } public TableDefinition buildADVSIMPLELANGUAGETable ( ) { } public TableDefinition buildADVSIMPLEENTITYLANGUAGETable ( ) { } public TableDefinition buildCMP3_JIGSAWTable ( ) { } public TableDefinition buildCMP3_JIGSAW_PIECETable ( ) { } public TableDefinition buildCMP3_ROOMTable ( ) { } public TableDefinition buildCMP3_PRODUCTTable ( ) { } public TableDefinition buildCMP3_HINGETable ( ) { TableDefinition table = new TableDefinition ( ) ; table . setName ( "CMP3_HINGE" ) ; FieldDefinition fieldID = new FieldDefinition ( ) ; fieldID . setName ( "ID" ) ; fieldID . setTypeName ( "NUMBER" ) ; fieldID . setSize ( 15 ) ; fieldID . setIsPrimaryKey ( true ) ; fieldID . setIsIdentity ( false ) ; fieldID . setUnique ( false ) ; fieldID . setShouldAllowNull ( false ) ; table . addField ( fieldID ) ; FieldDefinition fieldDOOR_ID = new FieldDefinition ( ) ; fieldDOOR_ID . setName ( "DOOR_ID" ) ; fieldDOOR_ID . setTypeName ( "NUMBER" ) ; fieldDOOR_ID . setSize ( 10 ) ; fieldDOOR_ID . setIsPrimaryKey ( true ) ; fieldDOOR_ID . setIsIdentity ( false ) ; fieldDOOR_ID . setUnique ( false ) ; <START_BUG> fieldDOOR_ID . setShouldAllowNull ( true ) ; <END_BUG> table . addField ( fieldDOOR_ID ) ; ForeignKeyConstraint foreignKeyCMP3_HINGE_CMP3_DOOR = new ForeignKeyConstraint ( ) ; foreignKeyCMP3_HINGE_CMP3_DOOR . setName ( "CMP3_HINGE_CMP3_DOOR" ) ; foreignKeyCMP3_HINGE_CMP3_DOOR . setTargetTable ( "CMP3_DOOR" ) ; foreignKeyCMP3_HINGE_CMP3_DOOR . addSourceField ( "DOOR_ID" ) ; foreignKeyCMP3_HINGE_CMP3_DOOR . addTargetField ( "ID" ) ; table . addForeignKeyConstraint ( foreignKeyCMP3_HINGE_CMP3_DOOR ) ; return table ; } public TableDefinition buildCMP3_DOORTable ( ) { } public static TableDefinition buildCmp3EmbedVisitorTable ( ) { } public TableDefinition buildCMP3_CANOETable ( ) { } public TableDefinition buildCMP3_LAKETable ( ) { } @ Override public void replaceTables ( DatabaseSession session ) { } }

Fix:
fieldDOOR_ID . setShouldAllowNull ( false ) ;