main
Last change
on this file was c3268ca, checked in by Stefan Risteski <stefanristeski2001@…>, 21 months ago |
Project
The whole Project
|
-
Property mode
set to
100644
|
File size:
363 bytes
|
Rev | Line | |
---|
[c3268ca] | 1 | package com.example.kvizko.models;
|
---|
| 2 |
|
---|
| 3 | import jakarta.persistence.*;
|
---|
| 4 | import lombok.Data;
|
---|
| 5 |
|
---|
| 6 | @Entity
|
---|
| 7 | @Data
|
---|
| 8 | @Table(name = "choice")
|
---|
| 9 | public class Choice {
|
---|
| 10 |
|
---|
| 11 | @Id
|
---|
| 12 | private long choiceid;
|
---|
| 13 |
|
---|
| 14 | @ManyToOne
|
---|
| 15 | @JoinColumn(name="questionid")
|
---|
| 16 | private Selectionquestion selectionquestion;
|
---|
| 17 |
|
---|
| 18 | //private long questionid;
|
---|
| 19 | private boolean iscorrect;
|
---|
| 20 | private String choicetext;
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.