Program: 64094
Project: 64094
Buggy source:
@Override public void afterPropertiesSet() throws Exception {
  if ("String_Node_Str".equals(hbm2ddlStrategy) || "String_Node_Str".equals(hbm2ddlStrategy)) {
    User user2=new User();
    user2.setEmail("String_Node_Str");
    user2.setFirstName("String_Node_Str");
    user2.setLastName("String_Node_Str");
    user2.setPassword("String_Node_Str");
    AzureCredential azureCredential=new AzureCredential();
    azureCredential.setSubscriptionId("String_Node_Str");
    azureCredential.setJks("String_Node_Str");
    azureCredential.setAzureCredentialOwner(user2);
    AwsCredential awsCredential=new AwsCredential();
    awsCredential.setRoleArn("String_Node_Str");
    awsCredential.setAwsCredentialOwner(user2);
    user2.getAwsCredentials().add(awsCredential);
    user2.getAzureCredentials().add(azureCredential);
    AwsTemplate awsTemplate=new AwsTemplate();
    awsTemplate.setName("String_Node_Str");
    awsTemplate.setKeyName("String_Node_Str");
    awsTemplate.setName("String_Node_Str");
    awsTemplate.setRegion(Regions.EU_WEST_1);
    awsTemplate.setAmiId("String_Node_Str");
    awsTemplate.setInstanceType(InstanceType.M1Small);
    awsTemplate.setSshLocation("String_Node_Str");
    awsTemplate.setUser(user2);
    Stack awsStack=new Stack();
    awsStack.setTemplate(awsTemplate);
    awsStack.setNodeCount(NODE_COUNT);
    awsStack.setName("String_Node_Str");
    awsStack.setUser(user2);
    awsStack.setCredential(awsCredential);
    user2.getAwsTemplates().add(awsTemplate);
    AzureTemplate azureTemplate=new AzureTemplate();
    azureTemplate.setDeploymentSlot("String_Node_Str");
    azureTemplate.setDescription("String_Node_Str");
    azureTemplate.setImageName("String_Node_Str");
    azureTemplate.setLocation("String_Node_Str");
    azureTemplate.setName("String_Node_Str");
    azureTemplate.setUserName("String_Node_Str");
    azureTemplate.setPassword("String_Node_Str");
    azureTemplate.setSubnetAddressPrefix("String_Node_Str");
    azureTemplate.setVmType("String_Node_Str");
    Port port=new Port();
    port.setLocalPort("String_Node_Str");
    port.setName("String_Node_Str");
    port.setProtocol("String_Node_Str");
    port.setPort("String_Node_Str");
    port.setAzureTemplate(azureTemplate);
    azureTemplate.getPorts().add(port);
    azureTemplate.setUser(user2);
    Stack azureStack=new Stack();
    azureStack.setTemplate(azureTemplate);
    azureStack.setNodeCount(NODE_COUNT);
    azureStack.setUser(user2);
    azureStack.setCredential(azureCredential);
    azureStack.setName("String_Node_Str");
    Blueprint blueprint1=new Blueprint();
    blueprint1.setName("String_Node_Str");
    blueprint1.setBlueprintText("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
    blueprint1.setUser(user2);
    Blueprint blueprint2=new Blueprint();
    blueprint2.setName("String_Node_Str");
    blueprint2.setBlueprintText("String_Node_Str");
    blueprint2.setUser(user2);
    user2.getBlueprints().add(blueprint1);
    user2.getBlueprints().add(blueprint2);
    user2.getAzureTemplates().add(azureTemplate);
    user2.getStacks().add(azureStack);
    userRepository.save(user2);
  }
}

Fixed version (ground truth):
@Override public void afterPropertiesSet() throws Exception {
  if ("String_Node_Str".equals(hbm2ddlStrategy) || "String_Node_Str".equals(hbm2ddlStrategy)) {
    User user2=new User();
    user2.setEmail("String_Node_Str");
    user2.setFirstName("String_Node_Str");
    user2.setLastName("String_Node_Str");
    user2.setPassword("String_Node_Str");
    AzureCredential azureCredential=new AzureCredential();
    azureCredential.setSubscriptionId("String_Node_Str");
    azureCredential.setJks("String_Node_Str");
    azureCredential.setAzureCredentialOwner(user2);
    azureCredential.setName("String_Node_Str");
    AwsCredential awsCredential=new AwsCredential();
    awsCredential.setRoleArn("String_Node_Str");
    awsCredential.setAwsCredentialOwner(user2);
    awsCredential.setName("String_Node_Str");
    user2.getAwsCredentials().add(awsCredential);
    user2.getAzureCredentials().add(azureCredential);
    AwsTemplate awsTemplate=new AwsTemplate();
    awsTemplate.setName("String_Node_Str");
    awsTemplate.setKeyName("String_Node_Str");
    awsTemplate.setName("String_Node_Str");
    awsTemplate.setRegion(Regions.EU_WEST_1);
    awsTemplate.setAmiId("String_Node_Str");
    awsTemplate.setInstanceType(InstanceType.M1Small);
    awsTemplate.setSshLocation("String_Node_Str");
    awsTemplate.setUser(user2);
    Stack awsStack=new Stack();
    awsStack.setTemplate(awsTemplate);
    awsStack.setNodeCount(NODE_COUNT);
    awsStack.setName("String_Node_Str");
    awsStack.setUser(user2);
    awsStack.setCredential(awsCredential);
    awsStack.setAmbariIp("String_Node_Str");
    awsStack.setStatus(Status.CREATE_COMPLETED);
    user2.getAwsTemplates().add(awsTemplate);
    AzureTemplate azureTemplate=new AzureTemplate();
    azureTemplate.setDeploymentSlot("String_Node_Str");
    azureTemplate.setDescription("String_Node_Str");
    azureTemplate.setImageName("String_Node_Str");
    azureTemplate.setLocation("String_Node_Str");
    azureTemplate.setName("String_Node_Str");
    azureTemplate.setUserName("String_Node_Str");
    azureTemplate.setPassword("String_Node_Str");
    azureTemplate.setSubnetAddressPrefix("String_Node_Str");
    azureTemplate.setVmType("String_Node_Str");
    Port port=new Port();
    port.setLocalPort("String_Node_Str");
    port.setName("String_Node_Str");
    port.setProtocol("String_Node_Str");
    port.setPort("String_Node_Str");
    port.setAzureTemplate(azureTemplate);
    azureTemplate.getPorts().add(port);
    azureTemplate.setUser(user2);
    Stack azureStack=new Stack();
    azureStack.setTemplate(azureTemplate);
    azureStack.setNodeCount(NODE_COUNT);
    azureStack.setUser(user2);
    azureStack.setCredential(azureCredential);
    azureStack.setName("String_Node_Str");
    awsStack.setAmbariIp("String_Node_Str");
    awsStack.setStatus(Status.CREATE_COMPLETED);
    Blueprint blueprint1=new Blueprint();
    blueprint1.setName("String_Node_Str");
    blueprint1.setBlueprintText("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
    blueprint1.setUser(user2);
    Blueprint blueprint2=new Blueprint();
    blueprint2.setName("String_Node_Str");
    blueprint2.setBlueprintText("String_Node_Str");
    blueprint2.setUser(user2);
    user2.getBlueprints().add(blueprint1);
    user2.getBlueprints().add(blueprint2);
    user2.getAzureTemplates().add(azureTemplate);
    user2.getStacks().add(azureStack);
    user2.getStacks().add(awsStack);
    userRepository.save(user2);
  }
}