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:
1.7 KB
|
Line | |
---|
1 | package com.example.eatys_app.model;
|
---|
2 |
|
---|
3 |
|
---|
4 | import jakarta.persistence.*;
|
---|
5 |
|
---|
6 | import java.util.Date;
|
---|
7 |
|
---|
8 | @Entity
|
---|
9 | @Table(name="cena", schema = "project")
|
---|
10 | public class Cena {
|
---|
11 |
|
---|
12 | @Id
|
---|
13 | @Column(name = "cena_id", nullable = false)
|
---|
14 | private Integer id;
|
---|
15 |
|
---|
16 | @ManyToOne
|
---|
17 | @JoinColumn(name = "obrok_id", nullable = false)
|
---|
18 | private Obrok obrok;
|
---|
19 |
|
---|
20 |
|
---|
21 | @Column(name = "cena_iznos")
|
---|
22 | private Integer CenaIznos;
|
---|
23 |
|
---|
24 | @Column(name = "cena_vazi_od")
|
---|
25 | private Date CenaVaziOd;
|
---|
26 |
|
---|
27 | @Column(name = "cena_vazi_do")
|
---|
28 | private Date CenaVaziDo;
|
---|
29 |
|
---|
30 |
|
---|
31 | public Cena() {
|
---|
32 | }
|
---|
33 |
|
---|
34 | public Cena(Obrok obrok, Integer cenaIznos, Date cenaVaziOd, Date cenaVaziDo) {
|
---|
35 | this.obrok=obrok;
|
---|
36 | CenaIznos = cenaIznos;
|
---|
37 | CenaVaziOd = cenaVaziOd;
|
---|
38 | CenaVaziDo = cenaVaziDo;
|
---|
39 | }
|
---|
40 |
|
---|
41 | public Cena(Integer id, Obrok obrok, Integer cenaIznos, Date cenaVaziOd, Date cenaVaziDo) {
|
---|
42 | this.id = id;
|
---|
43 | this.obrok = obrok;
|
---|
44 | CenaIznos = cenaIznos;
|
---|
45 | CenaVaziOd = cenaVaziOd;
|
---|
46 | CenaVaziDo = cenaVaziDo;
|
---|
47 | }
|
---|
48 |
|
---|
49 | public Integer getId() {
|
---|
50 | return id;
|
---|
51 | }
|
---|
52 |
|
---|
53 | public void setId(Integer id) {
|
---|
54 | this.id = id;
|
---|
55 | }
|
---|
56 |
|
---|
57 | public Obrok getObrok() {
|
---|
58 | return obrok;
|
---|
59 | }
|
---|
60 |
|
---|
61 | public void setObrok(Obrok obrok) {
|
---|
62 | this.obrok = obrok;
|
---|
63 | }
|
---|
64 |
|
---|
65 | public Integer getCenaIznos() {
|
---|
66 | return CenaIznos;
|
---|
67 | }
|
---|
68 |
|
---|
69 | public void setCenaIznos(Integer cenaIznos) {
|
---|
70 | CenaIznos = cenaIznos;
|
---|
71 | }
|
---|
72 |
|
---|
73 | public Date getCenaVaziOd() {
|
---|
74 | return CenaVaziOd;
|
---|
75 | }
|
---|
76 |
|
---|
77 | public void setCenaVaziOd(Date cenaVaziOd) {
|
---|
78 | CenaVaziOd = cenaVaziOd;
|
---|
79 | }
|
---|
80 |
|
---|
81 | public Date getCenaVaziDo() {
|
---|
82 | return CenaVaziDo;
|
---|
83 | }
|
---|
84 |
|
---|
85 | public void setCenaVaziDo(Date cenaVaziDo) {
|
---|
86 | CenaVaziDo = cenaVaziDo;
|
---|
87 | }
|
---|
88 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.