package studentcapture.feedback;


import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * This model takes care of the feedback of an assignment. It is used to gather
 * all information possible.
 *
 * @author Group6
 * @version 0.1
 * @see Submission
 */
public class FeedbackModel {
    @NotNull @Min(1)
    private int studentID;
    @NotNull @Min(1)
    private int assignmentID;
    @NotNull @Min(1)
    private int courseID;

    private String grade, feedbackText;

    public void setTeacherID(String teacherID) {
        this.teacherID = teacherID;
    }

    private String teacherID;


    /**
     * @return the StudentID of the feedback.
     */
    public int getStudentID() {
        return studentID;
    }

    /**
     * @param studentID set the studentID of feedback.
     */
    public void setStudentID(int studentID) {
        this.studentID = studentID;
    }

    /**
     * @return the AssigmentID of the feedback
     */
    public int getAssignmentID() {
        return assignmentID;
    }

    /**
     * @param assignmentID sets the assignmentID
     */
    public void setAssignmentID(int assignmentID) {
        this.assignmentID = assignmentID;
    }

    /**
     * @return Returns the grade of the assignment.
     */
    public String getGrade() {
        return grade;
    }

    /**
     * @param grade will set the grade of the Submission
     */
    public void setGrade(String grade) {
        this.grade = grade;
    }

    /**
     * @return the given feedback text appointed towards the submission.
     */
    public String getFeedbackText() {
        return feedbackText;
    }

    /**
     * @param feedbackText The feedback in text form by the user.
     */
    public void setFeedbackText(String feedbackText) {
        this.feedbackText = feedbackText;
    }

    /**
     * @return courseID of the feedback.
     */
    public int getCourseID() {
        return courseID;
    }

    /**
     * @param courseID the courseID of the feedback.
     */
    public void setCourseID(int courseID) {
        this.courseID = courseID;
    }

    /**
     * @return teacherID of the current feedback.
     */
    public String getTeacherID() {
        return teacherID;
    }
}

@@ -464,16 +464,45 @@
 rseID;%0A%0A
+    private int courseCode;%0A%0A
     priv
@@ -2277,11 +2277,171 @@
 D;%0A    %7D
+%0A%0A    public int getCourseCode() %7B%0A        return courseCode;%0A    %7D%0A%0A    public void setCourseCode(int courseCode) %7B%0A        this.courseCode = courseCode;%0A    %7D
 %0A%7D%0A

Add course code to the Feedback model.