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

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

Dodadeni se komentarite pod sekoj recept

  • Property mode set to 100644
File size: 1.6 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, String imePrezime) {
29 this.komData = komData;
30 this.telefon = telefon;
31 this.recId = recId;
32 this.ocena = ocena;
33 this.text = text;
34 this.imePrezime = imePrezime;
35 }
36
37 public Komentar() {
38 }
39
40 public LocalDateTime getKomData() {
41 return komData;
42 }
43
44 public void setKomData(LocalDateTime komData) {
45 this.komData = komData;
46 }
47
48 public String getTelefon() {
49 return telefon;
50 }
51
52 public void setTelefon(String telefon) {
53 this.telefon = telefon;
54 }
55
56 public Long getRecId() {
57 return recId;
58 }
59
60 public void setRecId(Long recId) {
61 this.recId = recId;
62 }
63
64 public Integer getOcena() {
65 return ocena;
66 }
67
68 public void setOcena(Integer ocena) {
69 this.ocena = ocena;
70 }
71
72 public String getText() {
73 return text;
74 }
75
76 public void setText(String text) {
77 this.text = text;
78 }
79
80 public String getDataFormatirana(){
81 return komData.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"));
82 }
83}
Note: See TracBrowser for help on using the repository browser.