diff options
Diffstat (limited to 'src/main/java/com/stileeducation/markr/entity/TestResult.java')
| -rw-r--r-- | src/main/java/com/stileeducation/markr/entity/TestResult.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/stileeducation/markr/entity/TestResult.java b/src/main/java/com/stileeducation/markr/entity/TestResult.java index cb7cea5..0d68f62 100644 --- a/src/main/java/com/stileeducation/markr/entity/TestResult.java +++ b/src/main/java/com/stileeducation/markr/entity/TestResult.java @@ -8,6 +8,16 @@ import java.util.Objects; @Table(name = "test_results") public class TestResult { + public TestResult() { + } + + public TestResult(Long id, Student student, Test test, Integer marksAwarded) { + this.id = id; + this.student = student; + this.test = test; + this.marksAwarded = marksAwarded; + } + @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; |
