main
Last change
on this file since c3268ca was c3268ca, checked in by Stefan Risteski <stefanristeski2001@…>, 14 months ago |
Project
The whole Project
|
-
Property mode
set to
100644
|
File size:
966 bytes
|
Line | |
---|
1 | package com.example.kvizko.models.views;
|
---|
2 |
|
---|
3 | import com.example.kvizko.models.EmbeddedClasses.Top5ReshavachiIdClass;
|
---|
4 | import jakarta.persistence.EmbeddedId;
|
---|
5 | import jakarta.persistence.Entity;
|
---|
6 | import jakarta.persistence.Id;
|
---|
7 | import jakarta.persistence.Table;
|
---|
8 | import lombok.Data;
|
---|
9 | import org.hibernate.annotations.Immutable;
|
---|
10 |
|
---|
11 | @Immutable
|
---|
12 | @Entity
|
---|
13 | @Table(name = "top5reshavachi")
|
---|
14 | @Data
|
---|
15 | public class Top5Reshavachi {
|
---|
16 |
|
---|
17 | @EmbeddedId
|
---|
18 | private Top5ReshavachiIdClass top5ReshavachiIdClass;
|
---|
19 |
|
---|
20 | private long points;
|
---|
21 |
|
---|
22 |
|
---|
23 |
|
---|
24 | public String getUsername() {
|
---|
25 | return top5ReshavachiIdClass.getUsername();
|
---|
26 | }
|
---|
27 |
|
---|
28 | /*public void setUsername(String username) {
|
---|
29 | this.username = username;
|
---|
30 | }*/
|
---|
31 |
|
---|
32 |
|
---|
33 | public long getPoints() {
|
---|
34 | return points;
|
---|
35 | }
|
---|
36 |
|
---|
37 | public void setPoints(long points) {
|
---|
38 | this.points = points;
|
---|
39 | }
|
---|
40 |
|
---|
41 |
|
---|
42 | public String getQuizname() {
|
---|
43 | return top5ReshavachiIdClass.getQuizname();
|
---|
44 | }
|
---|
45 |
|
---|
46 | /* public void setQuizname(String quizname) {
|
---|
47 | this.quizname = quizname;
|
---|
48 | }*/
|
---|
49 |
|
---|
50 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.