main
Last change
on this file since c3268ca was c3268ca, checked in by Stefan Risteski <stefanristeski2001@…>, 9 months ago |
Project
The whole Project
|
-
Property mode
set to
100644
|
File size:
509 bytes
|
Line | |
---|
1 | package com.example.kvizko.models;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 |
|
---|
6 | @Entity
|
---|
7 | @Data
|
---|
8 | @Table(name = "result_table")
|
---|
9 | public class ResultTable {
|
---|
10 |
|
---|
11 | @Id
|
---|
12 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
13 | private long resultid;
|
---|
14 |
|
---|
15 | @OneToOne
|
---|
16 | @JoinColumn(name = "attemptid")
|
---|
17 | private Attempt attempt;
|
---|
18 | //private long attemptid;
|
---|
19 | private long points;
|
---|
20 |
|
---|
21 | public ResultTable() {}
|
---|
22 | public ResultTable(Attempt attempt, long points) {
|
---|
23 | this.attempt = attempt;
|
---|
24 | this.points = points;
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.