List<TeamAssignment> teamAssignmentList = new ArrayList<TeamAssignment>();
long id = 0L;
for (Day day : dayList) {
for (int i = 0; i < 4; i++) {
teamAssignmentList.add(new TeamAssignment(id, day, i));
id++;
}
}
tennisSolution.setTeamAssignmentList(teamAssignmentList);