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:
350 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="medal")
|
---|
9 | public class Medal {
|
---|
10 |
|
---|
11 | @Id
|
---|
12 | private long medalid;
|
---|
13 |
|
---|
14 | @ManyToOne
|
---|
15 | @JoinColumn(name="tournamentid")
|
---|
16 | private Tournament tournament;
|
---|
17 | //private long tournamentid;
|
---|
18 | private String medalname;
|
---|
19 | private String description;
|
---|
20 |
|
---|
21 |
|
---|
22 |
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.