source: src/main/java/com/example/cookbook/model/Komentar.java

Last change on this file was ee27685, checked in by Blazho <aleksandar.blazhevski@…>, 9 months ago

Added order items page

  • Property mode set to 100644
File size: 1.9 KB
Line 
1package com.example.cookbook.model;
2
3import java.time.LocalDateTime;
4import java.time.format.DateTimeFormatter;
5
6public class Komentar {
7
8 private LocalDateTime komData;
9
10 private String telefon;
11
12 private Long recId;
13
14 private Integer ocena;
15
16 private String text;
17
18 private String imePrezime;
19
20 public String getImePrezime() {
21 return imePrezime;
22 }
23
24 public void setImePrezime(String imePrezime) {
25 this.imePrezime = imePrezime;
26 }
27
28 public Komentar(LocalDateTime komData, String telefon, Long recId, Integer ocena, String text) {
29 this.komData = komData;
30 this.telefon = telefon;
31 this.recId = recId;
32 this.ocena = ocena;
33 this.text = text;
34 }
35
36 public Komentar(LocalDateTime komData, String telefon, Long recId, Integer ocena, String text, String imePrezime) {
37 this.komData = komData;
38 this.telefon = telefon;
39 this.recId = recId;
40 this.ocena = ocena;
41 this.text = text;
42 this.imePrezime = imePrezime;
43 }
44
45 public Komentar() {
46 }
47
48 public LocalDateTime getKomData() {
49 return komData;
50 }
51
52 public void setKomData(LocalDateTime komData) {
53 this.komData = komData;
54 }
55
56 public String getTelefon() {
57 return telefon;
58 }
59
60 public void setTelefon(String telefon) {
61 this.telefon = telefon;
62 }
63
64 public Long getRecId() {
65 return recId;
66 }
67
68 public void setRecId(Long recId) {
69 this.recId = recId;
70 }
71
72 public Integer getOcena() {
73 return ocena;
74 }
75
76 public void setOcena(Integer ocena) {
77 this.ocena = ocena;
78 }
79
80 public String getText() {
81 return text;
82 }
83
84 public void setText(String text) {
85 this.text = text;
86 }
87
88 public String getDataFormatirana(){
89 return komData.format(DateTimeFormatter.ofPattern("yyyy-MMM-dd HH:mm"));
90 }
91}
Note: See TracBrowser for help on using the repository browser.