Last change
on this file was baf4cc4, checked in by ppaunovski <paunovskipavel@…>, 3 months ago |
split group project and individual project into two separate folders
|
-
Property mode
set to
100644
|
File size:
562 bytes
|
Line | |
---|
1 | package mk.ukim.finki.busngo.model.entities;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 | import lombok.EqualsAndHashCode;
|
---|
6 |
|
---|
7 | import java.util.List;
|
---|
8 | import java.util.Objects;
|
---|
9 |
|
---|
10 | @EqualsAndHashCode(callSuper = true)
|
---|
11 | @Data
|
---|
12 | @Entity
|
---|
13 | public class Patnik extends Korisnik {
|
---|
14 | @OneToMany(mappedBy = "korisnikByPatnikKId")
|
---|
15 | private List<Bilet> biletsByKId;
|
---|
16 |
|
---|
17 | @OneToMany(mappedBy = "korisnikByPatnikKId")
|
---|
18 | private List<Kaznazaregistriran> kaznazaregistriransByKId;
|
---|
19 |
|
---|
20 | @OneToMany(mappedBy = "korisnikByPatnikKId")
|
---|
21 | private List<Vozenje> vozenjesByKId;
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.