throw new RuntimeException("AttendanceService:saveAttendance | Could not get the list of student ids");
}
logger.info("AttendanceService:saveAttendance | Creating instances of Absentees & saving");
List<Absentee> absentees =new ArrayList<Absentee>();
Absentee absentee;
for(Long studentId: studentIds){
absentee = new Absentee(studentId,standardId,divisionId,dateOfAbsence);
absentees.add(absentee);
}
this.attendanceDAO.markAsAbsent(absentees);
logger.info("AttendanceService:saveAttendance | Absentees saved succesfully");