public Student createStudent() {
   Student s = new Student();
   s.setGender(new Byte("1"));
   s.setName("John");
   s.setClass_("12");
   s.setRollnumber(007);
   studentDAO.addStudent(s);
   return s;
 }
 public Student getStudent(Integer id) {
   return studentDAO.findStudentById(id);
 }
 public List<Student> getStudentList() {
   return studentDAO.listStudent();
 }
 public void deleteStudent(Integer id) {
   studentDAO.deleteStudent(id);
   System.out.println("Student Deleted Success");
 }
 public void updateStudent(Integer id) {
   Student student = studentDAO.findStudentById(id);
   student.setName("online tutorials point");
   studentDAO.updateStudent(student);
   System.out.println("Student Updated Success");
 }