| 37935 |
amit |
1 |
package com.spice.profitmandi.dao.entity.fofo;
|
|
|
2 |
|
|
|
3 |
import com.spice.profitmandi.dao.enumuration.fofo.StoreStatus;
|
|
|
4 |
import com.spice.profitmandi.dao.enumuration.fofo.StoreStatusAction;
|
|
|
5 |
import com.spice.profitmandi.dao.enumuration.fofo.StoreStatusSource;
|
|
|
6 |
|
|
|
7 |
import javax.persistence.*;
|
|
|
8 |
import java.time.LocalDateTime;
|
|
|
9 |
|
|
|
10 |
@Entity
|
|
|
11 |
@Table(name = "fofo.store_status_log")
|
|
|
12 |
public class StoreStatusLog {
|
|
|
13 |
|
|
|
14 |
@Id
|
|
|
15 |
@Column(name = "id")
|
|
|
16 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
17 |
private int id;
|
|
|
18 |
|
|
|
19 |
@Column(name = "fofo_id")
|
|
|
20 |
private int fofoId;
|
|
|
21 |
|
|
|
22 |
@Enumerated(EnumType.STRING)
|
|
|
23 |
@Column(name = "from_status")
|
|
|
24 |
private StoreStatus fromStatus;
|
|
|
25 |
|
|
|
26 |
@Enumerated(EnumType.STRING)
|
|
|
27 |
@Column(name = "to_status")
|
|
|
28 |
private StoreStatus toStatus;
|
|
|
29 |
|
|
|
30 |
@Enumerated(EnumType.STRING)
|
|
|
31 |
@Column(name = "action")
|
|
|
32 |
private StoreStatusAction action;
|
|
|
33 |
|
|
|
34 |
@Column(name = "reason")
|
|
|
35 |
private String reason;
|
|
|
36 |
|
|
|
37 |
@Enumerated(EnumType.STRING)
|
|
|
38 |
@Column(name = "source")
|
|
|
39 |
private StoreStatusSource source;
|
|
|
40 |
|
|
|
41 |
@Column(name = "changed_by")
|
|
|
42 |
private String changedBy;
|
|
|
43 |
|
|
|
44 |
@Column(name = "allowed_as")
|
|
|
45 |
private String allowedAs;
|
|
|
46 |
|
|
|
47 |
@Column(name = "active_until")
|
|
|
48 |
private LocalDateTime activeUntil;
|
|
|
49 |
|
|
|
50 |
@Column(name = "store_closure_id")
|
|
|
51 |
private Integer storeClosureId;
|
|
|
52 |
|
|
|
53 |
@Column(name = "create_timestamp")
|
|
|
54 |
private LocalDateTime createTimestamp;
|
|
|
55 |
|
|
|
56 |
public int getId() {
|
|
|
57 |
return id;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
public void setId(int id) {
|
|
|
61 |
this.id = id;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
public int getFofoId() {
|
|
|
65 |
return fofoId;
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
public void setFofoId(int fofoId) {
|
|
|
69 |
this.fofoId = fofoId;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
public StoreStatus getFromStatus() {
|
|
|
73 |
return fromStatus;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
public void setFromStatus(StoreStatus fromStatus) {
|
|
|
77 |
this.fromStatus = fromStatus;
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
public StoreStatus getToStatus() {
|
|
|
81 |
return toStatus;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
public void setToStatus(StoreStatus toStatus) {
|
|
|
85 |
this.toStatus = toStatus;
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
public StoreStatusAction getAction() {
|
|
|
89 |
return action;
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
public void setAction(StoreStatusAction action) {
|
|
|
93 |
this.action = action;
|
|
|
94 |
}
|
|
|
95 |
|
|
|
96 |
public String getReason() {
|
|
|
97 |
return reason;
|
|
|
98 |
}
|
|
|
99 |
|
|
|
100 |
public void setReason(String reason) {
|
|
|
101 |
this.reason = reason;
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
public StoreStatusSource getSource() {
|
|
|
105 |
return source;
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
public void setSource(StoreStatusSource source) {
|
|
|
109 |
this.source = source;
|
|
|
110 |
}
|
|
|
111 |
|
|
|
112 |
public String getChangedBy() {
|
|
|
113 |
return changedBy;
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
public void setChangedBy(String changedBy) {
|
|
|
117 |
this.changedBy = changedBy;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
public String getAllowedAs() {
|
|
|
121 |
return allowedAs;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
public void setAllowedAs(String allowedAs) {
|
|
|
125 |
this.allowedAs = allowedAs;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
public LocalDateTime getActiveUntil() {
|
|
|
129 |
return activeUntil;
|
|
|
130 |
}
|
|
|
131 |
|
|
|
132 |
public void setActiveUntil(LocalDateTime activeUntil) {
|
|
|
133 |
this.activeUntil = activeUntil;
|
|
|
134 |
}
|
|
|
135 |
|
|
|
136 |
public Integer getStoreClosureId() {
|
|
|
137 |
return storeClosureId;
|
|
|
138 |
}
|
|
|
139 |
|
|
|
140 |
public void setStoreClosureId(Integer storeClosureId) {
|
|
|
141 |
this.storeClosureId = storeClosureId;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
public LocalDateTime getCreateTimestamp() {
|
|
|
145 |
return createTimestamp;
|
|
|
146 |
}
|
|
|
147 |
|
|
|
148 |
public void setCreateTimestamp(LocalDateTime createTimestamp) {
|
|
|
149 |
this.createTimestamp = createTimestamp;
|
|
|
150 |
}
|
|
|
151 |
|
|
|
152 |
@Override
|
|
|
153 |
public String toString() {
|
|
|
154 |
return "StoreStatusLog [id=" + id + ", fofoId=" + fofoId + ", fromStatus=" + fromStatus + ", toStatus="
|
|
|
155 |
+ toStatus + ", action=" + action + ", reason=" + reason + ", source=" + source + ", changedBy="
|
|
|
156 |
+ changedBy + ", allowedAs=" + allowedAs + ", activeUntil=" + activeUntil + ", storeClosureId="
|
|
|
157 |
+ storeClosureId + ", createTimestamp=" + createTimestamp + "]";
|
|
|
158 |
}
|
|
|
159 |
}
|