use of de.tum.in.www1.artemis.domain.participation.Participant in project ArTEMiS by ls1intum.
the class DatabaseUtilService method addComplaints.
public void addComplaints(String studentLogin, Participation participation, int numberOfComplaints, ComplaintType complaintType) {
for (int i = 0; i < numberOfComplaints; i++) {
Result dummyResult = new Result().participation(participation);
dummyResult = resultRepo.save(dummyResult);
Complaint complaint = new Complaint().participant(getUserByLogin(studentLogin)).result(dummyResult).complaintType(complaintType);
complaintRepo.save(complaint);
}
}
Aggregations