package at.ac.tuwien.inso.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
public class Grade {

    @Id
    @GeneratedValue
    private Long id;

}

@@ -53,22 +53,17 @@
 istence.
-Entity
+*
 ;%0Aimport
@@ -71,65 +71,24 @@
 java
-x.persistence.GeneratedValue;%0Aimport javax.persistence.Id
+.math.BigDecimal
 ;%0A%0A@
@@ -166,10 +166,1766 @@
 ng id;%0A%0A
+    @ManyToOne%0A    private Course course;%0A%0A    @ManyToOne%0A    private Lecturer lecturer;%0A%0A    @ManyToOne%0A    private Student student;%0A%0A    @Column%0A    private BigDecimal mark;%0A%0A    public Grade(Course course, Lecturer lecturer, Student student, BigDecimal mark) %7B%0A        this.course = course;%0A        this.lecturer = lecturer;%0A        this.student = student;%0A        this.mark = mark;%0A    %7D%0A%0A    public Long getId() %7B%0A        return id;%0A    %7D%0A%0A    public Course getCourse() %7B%0A        return course;%0A    %7D%0A%0A    public Lecturer getLecturer() %7B%0A        return lecturer;%0A    %7D%0A%0A    public Student getStudent() %7B%0A        return student;%0A    %7D%0A%0A    public BigDecimal getMark() %7B%0A        return mark;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A        Grade grade = (Grade) o;%0A%0A        if (!id.equals(grade.id)) return false;%0A        if (!course.equals(grade.course)) return false;%0A        if (!lecturer.equals(grade.lecturer)) return false;%0A        if (!student.equals(grade.student)) return false;%0A        return mark.equals(grade.mark);%0A%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        int result = id.hashCode();%0A        result = 31 * result + course.hashCode();%0A        result = 31 * result + lecturer.hashCode();%0A        result = 31 * result + student.hashCode();%0A        result = 31 * result + mark.hashCode();%0A        return result;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return %22Grade%7B%22 +%0A                %22id=%22 + id +%0A                %22, course=%22 + course +%0A                %22, lecturer=%22 + lecturer +%0A                %22, student=%22 + student +%0A                %22, mark=%22 + mark +%0A                '%7D';%0A    %7D%0A
 %7D%0A

add relationships for Grade.