source: src/main/java/com/project/beautycenter/model/Uplata.java@ 850b344

Last change on this file since 850b344 was 850b344, checked in by Tamara Simikj <tamara.simic12@…>, 2 years ago

Initial commit

  • Property mode set to 100644
File size: 1003 bytes
Line 
1package com.project.beautycenter.model;
2
3import javax.persistence.*;
4import java.util.LinkedHashSet;
5import java.util.Set;
6
7@Entity
8@Table(name = "uplata",schema = "project")
9public class Uplata {
10 @Id
11 @GeneratedValue(strategy = GenerationType.IDENTITY)
12 @Column(name = "uplata_id", nullable = false)
13 private Integer id;
14
15 @Column(name = "informacii", length = 100)
16 private String informacii;
17
18 @OneToMany(mappedBy = "uplata")
19 private Set<Rezervacija> rezervacijas = new LinkedHashSet<>();
20
21 public Set<Rezervacija> getRezervacijas() {
22 return rezervacijas;
23 }
24
25 public void setRezervacijas(Set<Rezervacija> rezervacijas) {
26 this.rezervacijas = rezervacijas;
27 }
28
29 public String getInformacii() {
30 return informacii;
31 }
32
33 public void setInformacii(String informacii) {
34 this.informacii = informacii;
35 }
36
37 public Integer getId() {
38 return id;
39 }
40
41 public void setId(Integer id) {
42 this.id = id;
43 }
44}
Note: See TracBrowser for help on using the repository browser.