Package de.nak.notendb.model

Examples of de.nak.notendb.model.Student


    manipelService.speichere(testManipel5);
    manipelService.speichere(testManipel6);

    // ********************************************************************************
    // Studenten anlegen
    Student testStudent1 = new Student();
    testStudent1.setMatrikelNr(1234L);
    testStudent1.setNachname("Hansen");
    testStudent1.setVorname("Peterle");
    testStudent1.setManipel(testManipel1);

    Student testStudent2 = new Student();
    testStudent2.setMatrikelNr(1225L);
    testStudent2.setNachname("Beinhart");
    testStudent2.setVorname("Werner");
    testStudent2.setManipel(testManipel1);

    Student testStudent3 = new Student();
    testStudent3.setMatrikelNr(2237L);
    testStudent3.setNachname("Einstein");
    testStudent3.setVorname("Albert");
    testStudent3.setManipel(testManipel2);

    Student testStudent4 = new Student();
    testStudent4.setMatrikelNr(3234L);
    testStudent4.setNachname("Zimmerfrau");
    testStudent4.setVorname("Ursula");
    testStudent4.setManipel(testManipel3);

    Student testStudent5 = new Student();
    testStudent5.setMatrikelNr(4225L);
    testStudent5.setNachname("Özül");
    testStudent5.setVorname("Ingeborg");
    testStudent5.setManipel(testManipel5);

    Student testStudent6 = new Student();
    testStudent6.setMatrikelNr(1239L);
    testStudent6.setNachname("Teufel");
    testStudent6.setVorname("Maxi");
    testStudent6.setManipel(testManipel2);

    Student testStudent7 = new Student();
    testStudent7.setMatrikelNr(7000L);
    testStudent7.setNachname("Apfel");
    testStudent7.setVorname("Adam");
    testStudent7.setManipel(testManipel2);

    Student testStudent8 = new Student();
    testStudent8.setMatrikelNr(7001L);
    testStudent8.setNachname("Burg");
    testStudent8.setVorname("Berti");
    testStudent8.setManipel(testManipel2);

    Student testStudent9 = new Student();
    testStudent9.setMatrikelNr(7002L);
    testStudent9.setNachname("Cäsar");
    testStudent9.setVorname("Cem");
    testStudent9.setManipel(testManipel2);

    Student testStudent10 = new Student();
    testStudent10.setMatrikelNr(8000L);
    testStudent10.setNachname("Dorus");
    testStudent10.setVorname("Domian");
    testStudent10.setManipel(testManipel2);

    Student testStudent11 = new Student();
    testStudent11.setMatrikelNr(8002L);
    testStudent11.setNachname("Neumann");
    testStudent11.setVorname("Alfred E.");
    testStudent11.setManipel(testManipel2);

    Student testStudent12 = new Student();
    testStudent12.setMatrikelNr(8004L);
    testStudent12.setNachname("Kohl");
    testStudent12.setVorname("Helmut");
    testStudent12.setManipel(testManipel2);

    Student testStudent13 = new Student();
    testStudent13.setMatrikelNr(1L);
    testStudent13.setNachname("Law");
    testStudent13.setVorname("Murphys");
    testStudent13.setManipel(testManipel2);

    Student testStudent14 = new Student();
    testStudent14.setMatrikelNr(111L);
    testStudent14.setNachname("Mozart");
    testStudent14.setVorname("Wolfgang Amadeus");
    testStudent14.setManipel(testManipel6);

    Student testStudent15 = new Student();
    testStudent15.setMatrikelNr(112L);
    testStudent15.setNachname("Verdi");
    testStudent15.setVorname("Giuseppe");
    testStudent15.setManipel(testManipel6);

    Student testStudent16 = new Student();
    testStudent16.setMatrikelNr(3486L);
    testStudent16.setNachname("Foßhag");
    testStudent16.setVorname("Nils");
    testStudent16.setManipel(testManipel1);

    Student testStudent17 = new Student();
    testStudent17.setMatrikelNr(3437L);
    testStudent17.setNachname("Pertek");
    testStudent17.setVorname("Manuel");
    testStudent17.setManipel(testManipel1);

    Student testStudent18 = new Student();
    testStudent18.setMatrikelNr(3259L);
    testStudent18.setNachname("Pusch");
    testStudent18.setVorname("Julian");
    testStudent18.setManipel(testManipel1);

    Student testStudent19 = new Student();
    testStudent19.setMatrikelNr(3431L);
    testStudent19.setNachname("Stöcker");
    testStudent19.setVorname("Paul");
    testStudent19.setManipel(testManipel1);

    studentService.speichere(testStudent1);
    studentService.speichere(testStudent2);
    studentService.speichere(testStudent3);
    studentService.speichere(testStudent4);
View Full Code Here


    // ist das eingetragene schriftliche Ergebnis pro Student.
    if (leistungenMap != null) {
      for (Map.Entry<String, String> eintrag : leistungenMap.entrySet()) {
        if (!eintrag.getValue().isEmpty()
            && !eintrag.getKey().isEmpty()) {
          Student student = studentService.ladeStudent(Long
              .parseLong(eintrag.getKey()));
          Pruefungsleistung alteLeistung = pruefungsleistungService
              .ladeAktuellGueltigeLeistungZuStudentUndFach(
                  student.getId(), pruefungsfach.getId());
          // Prüfen ob ein weiterer Versuch erfasst werden darf
          if (alteLeistung != null
              && !pruefungsleistungService
                  .isWeitererVersuchErlaubt(alteLeistung)) {
            addFieldError("leistungenMap['" + eintrag.getKey()
View Full Code Here

    this.studentDAO = studentDAO;
  }

  @Override
  public Student ladeStudent(Long id) throws StudentNichtGefundenException {
    Student student = studentDAO.lade(id);
    if (student == null) {
      throw new StudentNichtGefundenException();
    }
    return student;
  }
View Full Code Here

   * Für das View werden ein Student und die zugehörige Prüfungsleistung
   * bereitgestellt. Das Student Objekt wird verwendet, um bei nicht
   * vorhandener Pruefungsleistung den Studenten in der Meldung auszugeben.
   */
  public String execute() throws Exception {
    Student student = studentService.ladeStudent(selektierteStudentId);
    Pruefungsleistung pruefungsleistung = pruefungsleistungService.ladeAktuellGueltigeLeistungZuStudentUndFach(
        selektierteStudentId, selektiertePruefungsfachId);
    session.put("student", student);
    session.put("pruefungsleistung", pruefungsleistung);
    return SUCCESS;
View Full Code Here

TOP

Related Classes of de.nak.notendb.model.Student

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.