listener for the add student button click action . concode_field_sep String selectedCourse concode_elem_sep Course currentCourse concode_elem_sep List studentCourses concode_elem_sep List courseItems concode_elem_sep String selectedStudent concode_elem_sep Student newStudent concode_elem_sep List studentItems concode_elem_sep Student currentStudent concode_elem_sep Student updateStudent concode_field_sep void init concode_elem_sep String getSelectedCourse concode_elem_sep List getCourseItems concode_elem_sep Student getNewStudent concode_elem_sep List getStudentItems concode_elem_sep void updateStudent concode_elem_sep void courseValueChanged concode_elem_sep List getStudentCourses concode_elem_sep Student getCurrentStudent concode_elem_sep void setNewStudent concode_elem_sep void setCurrentCourse concode_elem_sep void setCurrentStudent concode_elem_sep void studentValueChanged concode_elem_sep Student getUpdateStudent concode_elem_sep void setStudentCourses concode_elem_sep void addCourseToStudent concode_elem_sep void setSelectedStudent concode_elem_sep void deleteStudent concode_elem_sep void setUpdateStudent concode_elem_sep void setSelectedCourse concode_elem_sep Course getCurrentCourse concode_elem_sep void removeCourseFromStudent concode_elem_sep String getSelectedStudent
void function ( ActionEvent arg0 ) { Session loc0 = HibernateUtil . getSessionFactory ( ) . getCurrentSession ( ) ; loc0 . beginTransaction ( ) ; Student loc1 = newStudent ; loc0 . save ( loc1 ) ; loc0 . getTransaction ( ) . commit ( ) ; loc1 . clear ( ) ; init ( ) ; }