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:
390 bytes
|
Line | |
---|
1 | package com.example.kvizko.models;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 | import org.hibernate.annotations.Fetch;
|
---|
6 |
|
---|
7 | import java.util.List;
|
---|
8 |
|
---|
9 | @Entity
|
---|
10 | @Data
|
---|
11 | @Table(name = "selectionquestion")
|
---|
12 | public class Selectionquestion {
|
---|
13 |
|
---|
14 | @Id
|
---|
15 |
|
---|
16 | private long questionid;
|
---|
17 |
|
---|
18 | @OneToMany(mappedBy = "selectionquestion")
|
---|
19 | private List<Choice> choices; //ova mozhe da se iskoristi za ponatamu
|
---|
20 |
|
---|
21 |
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.