add expected value entity to partition key entity one by one
@@ -111,10 +111,10 @@ public class ExpectedPartitionValueServiceImpl implements ExpectedPartitionValue
ExpectedPartitionValueEntity expectedPartitionValueEntity = new ExpectedPartitionValueEntity();
createdExpectedPartitionValueEntities.add(expectedPartitionValueEntity);
expectedPartitionValueEntity.setPartitionKeyGroup(partitionKeyGroupEntity);
+ partitionKeyGroupEntity.getExpectedPartitionValues().add(expectedPartitionValueEntity);
expectedPartitionValueEntity.setPartitionValue(expectedPartitionValue);
expectedPartitionValueDao.saveAndRefresh(expectedPartitionValueEntity);
}
- partitionKeyGroupEntity.getExpectedPartitionValues().addAll(createdExpectedPartitionValueEntities);
return createExpectedPartitionValuesInformationFromEntities(partitionKeyGroupEntity, createdExpectedPartitionValueEntities);
}
