//Agregar StudentCourse
DAOStudent daoStudent = DAOStudent.getInstance();
Student student = daoStudent.get(transactionItem.getIdStudent().getId());
List<StudentCourse> studentCourses = student.getStudentCourses();
StudentCourse e = new StudentCourse();
e.setCourse(courseItem);
e.setStatus("active");
if(studentCourses != null){
if (studentCourses.size() > 0){
for (int i = 0; i < studentCourses.size(); i++) {
studentCourses.get(i).setStatus("inactive");