source: src/main/java/com/example/eatys_app/model/Kupuvac.java@ b3f2adb

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 
1package com.example.eatys_app.model;
2
3
4import jakarta.persistence.Column;
5import jakarta.persistence.Entity;
6import jakarta.persistence.OneToMany;
7import jakarta.persistence.Table;
8
9import java.util.LinkedHashSet;
10import java.util.Set;
11
12@Entity
13@Table(name="kupuvac", schema = "project")
14public 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.