Package net.sf.esims.model.valueobject

Examples of net.sf.esims.model.valueobject.StudentDetails


    this.standardService.save(standard);
   
    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
    StudentDetails studentDetails = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123","345",standard,dateOfAdmission,studentDetails);
    this.studentService.save(student);
   
    assertNotNull(this.studentService.getByFormNumber("345"));
View Full Code Here


    this.standardService.save(standard);
   
    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
    StudentDetails studentDetails = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123","345",standard,dateOfAdmission,studentDetails);
    this.studentService.save(student);
   
    assertNotNull(this.studentService.getByFormNumber("345"));
View Full Code Here

    this.standardService.save(standard);
   
    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
    StudentDetails studentDetails = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123","345",standard,dateOfAdmission,studentDetails);
    this.studentService.save(student);
   
    assertNotNull(this.studentService.generateAdmissionNumber());
View Full Code Here

    }
  }
 
 
  public static StudentDetails createStudentDetailsFromApplicationForm(ReceivedApplicationForm applicationForm){
    StudentDetails details = new StudentDetails();
    details.setBelowPovertyLine(applicationForm.getBelowPovertyLine());
    details.setCaste(applicationForm.getCaste());
    details.setDateOfBirth(applicationForm.getDateOfBirth());
    details.setFatherFirstName(applicationForm.getFatherFirstName());
    details.setFatherMiddleName(applicationForm.getFatherMiddleName());
    details.setFatherLastName(applicationForm.getFatherLastName());
    details.setFirstName(applicationForm.getFirstName());
    details.setFormNumber(applicationForm.getFormNumber());
    details.setGender(applicationForm.getGender());
    details.setGrossHouseHoldIncome(applicationForm.getGrossHouseHoldIncome());
    details.setLastName(applicationForm.getLastName());
   
    details.setMiddleName(applicationForm.getMiddleName());
    details.setMotherFirstName(applicationForm.getMotherFirstName());
    details.setMotherLastName(applicationForm.getMotherLastName());
    details.setMotherMiddleName(applicationForm.getMotherMiddleName());
    details.setMotherTounge(applicationForm.getMotherTounge());
    details.setNationality(applicationForm.getNationality());
   
    details.setOtherBackwardCaste(applicationForm.getOtherBackwardCaste());
    details.setPermanentHouseNameOrNumber(applicationForm.getPermanentHouseNameOrNumber());
    details.setPermanentPhoneNumber(applicationForm.getPermanentPhoneNumber());
    details.setPermanentPinCode(applicationForm.getPermanentPinCode());
    details.setPermanentState(applicationForm.getPermanentState());
    details.setPermanentStreet(applicationForm.getPermanentStreet());
    details.setPermanentVillageOrTownOrCity(applicationForm.getPermanentVillageOrTownOrCity());
    details.setPlaceOfBirth(applicationForm.getPlaceOfBirth());
   
    details.setReligion(applicationForm.getReligion());
    details.setScheduledCasteOrTribe(applicationForm.getScheduledCasteOrTribe());
    details.setSubcaste(applicationForm.getSubcaste());
   
    return details;
  }
View Full Code Here

        startDate, endDate, "active");
    academicYearDAO.save(academicYear);

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
    StudentDetails  details = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123123","345345",standard,dateOfAdmission,details);
    this.studentDAO.save(student);
   
    List<Student> listOfStudents = this.studentDAO.getAll();
View Full Code Here

        startDate, endDate, "active");
    academicYearDAO.save(academicYear);

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
    StudentDetails  details = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123123","345345",standard,dateOfAdmission,details);
    this.studentDAO.save(student);
   
    List<Student> listOfStudents = this.studentDAO.getAll();
View Full Code Here

    academicYearDAO.save(academicYear);

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
   
    StudentDetails  details = UtilsForTestCases.createStudentDetailsForTest();
   
    Division division = new Division("A", standard,"paplubhai",new Integer(50),new Integer(20),new Date());
   
    this.divisionDAO.save(division);
    Date dateOfAdmission = new Date();
View Full Code Here

        startDate, endDate, "active");
    academicYearDAO.save(academicYear);

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
    StudentDetails  details = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123123","345345",standard,dateOfAdmission,details);
    this.studentDAO.save(student);
   
    assertEquals(1,this.studentDAO.getCountOfAdmissions().intValue());
View Full Code Here

TOP

Related Classes of net.sf.esims.model.valueobject.StudentDetails

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.