Last change
on this file since b3f2adb was b3f2adb, checked in by Aleksandar Siljanoski <acewow3@…>, 14 months ago |
Adding project to repo
|
-
Property mode
set to
100644
|
File size:
983 bytes
|
Line | |
---|
1 | package com.example.eatys_app.model;
|
---|
2 |
|
---|
3 |
|
---|
4 | import jakarta.persistence.Column;
|
---|
5 | import jakarta.persistence.Entity;
|
---|
6 | import jakarta.persistence.OneToMany;
|
---|
7 | import jakarta.persistence.Table;
|
---|
8 |
|
---|
9 | import java.util.LinkedHashSet;
|
---|
10 | import java.util.Set;
|
---|
11 |
|
---|
12 | @Entity
|
---|
13 | @Table(name="kupuvac", schema = "project")
|
---|
14 | public class Kupuvac extends Korisnik{
|
---|
15 |
|
---|
16 | @Column(name = "kupuvac_tel_broj")
|
---|
17 | private String tel_broj;
|
---|
18 |
|
---|
19 | @OneToMany(mappedBy = "kupuvac")
|
---|
20 | private Set<Rezervacija> rezervacii = new LinkedHashSet<>();
|
---|
21 |
|
---|
22 | public Kupuvac() {
|
---|
23 | }
|
---|
24 |
|
---|
25 | public Kupuvac(String ime, String prezime, String password) {
|
---|
26 | super(ime, prezime, password);
|
---|
27 | }
|
---|
28 |
|
---|
29 | public String getTel_broj() {
|
---|
30 | return tel_broj;
|
---|
31 | }
|
---|
32 |
|
---|
33 | public void setTel_broj(String tel_broj) {
|
---|
34 | this.tel_broj = tel_broj;
|
---|
35 | }
|
---|
36 |
|
---|
37 | public Set<Rezervacija> getRezervacii() {
|
---|
38 | return rezervacii;
|
---|
39 | }
|
---|
40 |
|
---|
41 | public void setRezervacii(Set<Rezervacija> rezervacii) {
|
---|
42 | this.rezervacii = rezervacii;
|
---|
43 | }
|
---|
44 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.