Program: 63613
Project: 63613
Buggy source:
public void persistExample(Session session){
  Vector allObjects=new Vector();
  UnitOfWork unitOfWork=session.acquireUnitOfWork();
  unitOfWork.removeAllReadOnlyClasses();
  PopulationManager.getDefaultManager().addAllObjectsForClass(Employee.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(SmallProject.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(LargeProject.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(GoldBuyer.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(PlatinumBuyer.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(EquipmentCode.class,allObjects);
  unitOfWork.registerAllObjects(allObjects);
  unitOfWork.commit();
  if (TestCase.supportsStoredProcedures(session)) {
    boolean orig_FAST_TABLE_CREATOR=SchemaManager.FAST_TABLE_CREATOR;
    if (useFastTableCreatorAfterInitialCreate && !isFirstCreation) {
      SchemaManager.FAST_TABLE_CREATOR=true;
    }
    try {
      SchemaManager schema=new SchemaManager((DatabaseSession)session);
      schema.replaceObject(buildOracleStoredProcedureReadFromAddress((DatabaseSession)session));
      schema.replaceObject(buildOracleStoredProcedureReadInOut((DatabaseSession)session));
    }
  finally {
      if (useFastTableCreatorAfterInitialCreate && !isFirstCreation) {
        SchemaManager.FAST_TABLE_CREATOR=orig_FAST_TABLE_CREATOR;
      }
    }
    isFirstCreation=false;
  }
}

Fixed version (ground truth):
public void persistExample(Session session){
  Vector allObjects=new Vector();
  UnitOfWork unitOfWork=session.acquireUnitOfWork();
  unitOfWork.removeAllReadOnlyClasses();
  PopulationManager.getDefaultManager().addAllObjectsForClass(Employee.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(SmallProject.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(LargeProject.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(GoldBuyer.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(PlatinumBuyer.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(EquipmentCode.class,allObjects);
  unitOfWork.registerAllObjects(allObjects);
  unitOfWork.commit();
  if (TestCase.supportsStoredProcedures(session)) {
    boolean orig_FAST_TABLE_CREATOR=SchemaManager.FAST_TABLE_CREATOR;
    if (useFastTableCreatorAfterInitialCreate && !isFirstCreation) {
      SchemaManager.FAST_TABLE_CREATOR=true;
    }
    try {
      SchemaManager schema=new SchemaManager((DatabaseSession)session);
      schema.replaceObject(buildOracleStoredProcedureReadFromAddress((DatabaseSession)session));
      schema.replaceObject(buildOracleStoredProcedureReadFromEmployee((DatabaseSession)session));
      schema.replaceObject(buildOracleStoredProcedureReadInOut((DatabaseSession)session));
    }
  finally {
      if (useFastTableCreatorAfterInitialCreate && !isFirstCreation) {
        SchemaManager.FAST_TABLE_CREATOR=orig_FAST_TABLE_CREATOR;
      }
    }
    isFirstCreation=false;
  }
}