source: src/main/java/com/example/kvizko/models/views/Top5Reshavachi.java@ c3268ca

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 
1package com.example.kvizko.models.views;
2
3import com.example.kvizko.models.EmbeddedClasses.Top5ReshavachiIdClass;
4import jakarta.persistence.EmbeddedId;
5import jakarta.persistence.Entity;
6import jakarta.persistence.Id;
7import jakarta.persistence.Table;
8import lombok.Data;
9import org.hibernate.annotations.Immutable;
10
11@Immutable
12@Entity
13@Table(name = "top5reshavachi")
14@Data
15public 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.