| 24917 |
tejbeer |
1 |
package com.spice.profitmandi.dao.entity.transaction;
|
|
|
2 |
|
|
|
3 |
import java.time.LocalDateTime;
|
|
|
4 |
import java.time.format.DateTimeFormatter;
|
|
|
5 |
|
|
|
6 |
import javax.persistence.Column;
|
|
|
7 |
import javax.persistence.Entity;
|
|
|
8 |
import javax.persistence.GeneratedValue;
|
|
|
9 |
import javax.persistence.GenerationType;
|
|
|
10 |
import javax.persistence.Id;
|
|
|
11 |
import javax.persistence.Table;
|
|
|
12 |
|
|
|
13 |
@Entity
|
|
|
14 |
@Table(name = "transaction.notify_items", schema = "transaction")
|
|
|
15 |
public class NotifyItem {
|
|
|
16 |
|
|
|
17 |
@Id
|
|
|
18 |
@Column(name = "id", unique = true, updatable = false)
|
|
|
19 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
20 |
private int id;
|
|
|
21 |
|
|
|
22 |
@Column(name = "itemId")
|
|
|
23 |
private int itemId;
|
|
|
24 |
|
|
|
25 |
@Column(name = "notifyId")
|
|
|
26 |
private int notifyColorchangeId;
|
|
|
27 |
|
|
|
28 |
@Column(name = "procuredDate")
|
|
|
29 |
private LocalDateTime procuredDate;
|
|
|
30 |
|
|
|
31 |
@Column(name = "responseTime")
|
|
|
32 |
private LocalDateTime responseTime;
|
|
|
33 |
|
|
|
34 |
public int getId() {
|
|
|
35 |
return id;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
public void setId(int id) {
|
|
|
39 |
this.id = id;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
public int getItemId() {
|
|
|
43 |
return itemId;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
public void setItemId(int itemId) {
|
|
|
47 |
this.itemId = itemId;
|
|
|
48 |
}
|
|
|
49 |
public LocalDateTime getProcuredDate() {
|
|
|
50 |
return procuredDate;
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
public void setProcuredDate(LocalDateTime procuredDate) {
|
|
|
54 |
this.procuredDate = procuredDate;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public LocalDateTime getResponseTime() {
|
|
|
58 |
return responseTime;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public void setResponseTime(LocalDateTime responseTime) {
|
|
|
62 |
this.responseTime = responseTime;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public int getNotifyColorchangeId() {
|
|
|
66 |
return notifyColorchangeId;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
public void setNotifyColorchangeId(int notifyColorchangeId) {
|
|
|
70 |
this.notifyColorchangeId = notifyColorchangeId;
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
public String getFormattedresponseTime(){
|
|
|
74 |
if(responseTime == null){
|
|
|
75 |
return null;
|
|
|
76 |
}
|
|
|
77 |
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm");
|
|
|
78 |
return responseTime.format(formatter);
|
|
|
79 |
}
|
|
|
80 |
@Override
|
|
|
81 |
public String toString() {
|
|
|
82 |
return "NotifyItem [id=" + id + ", itemId=" + itemId + ", notifyColorchangeId=" + notifyColorchangeId
|
|
|
83 |
+ ", procuredDate=" + procuredDate + ", responseTime=" + responseTime + "]";
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
}
|