package com.project.beautycenter.model; import javax.persistence.*; import java.util.LinkedHashSet; import java.util.Set; @Entity @Table(name = "uplata",schema = "project") public class Uplata { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "uplata_id", nullable = false) private Integer id; @Column(name = "informacii", length = 100) private String informacii; @OneToMany(mappedBy = "uplata") private Set rezervacijas = new LinkedHashSet<>(); public Set getRezervacijas() { return rezervacijas; } public void setRezervacijas(Set rezervacijas) { this.rezervacijas = rezervacijas; } public String getInformacii() { return informacii; } public void setInformacii(String informacii) { this.informacii = informacii; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } }