| 35953 |
ranu |
1 |
package com.spice.profitmandi.dao.entity.cs;
|
|
|
2 |
|
|
|
3 |
import javax.persistence.*;
|
|
|
4 |
import java.time.LocalDate;
|
|
|
5 |
import java.time.LocalDateTime;
|
|
|
6 |
import java.util.Objects;
|
|
|
7 |
|
|
|
8 |
@Entity
|
|
|
9 |
@Table(name = "cs.rbm_break_log")
|
|
|
10 |
public class RbmBreakLog {
|
|
|
11 |
|
|
|
12 |
@Id
|
|
|
13 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
14 |
private Long id;
|
|
|
15 |
|
|
|
16 |
@Column(name = "auth_id")
|
|
|
17 |
private int authId;
|
|
|
18 |
|
|
|
19 |
@Column(name = "agent_name")
|
|
|
20 |
private String agentName;
|
|
|
21 |
|
|
|
22 |
@Column(name = "sr_number")
|
|
|
23 |
private String srNumber;
|
|
|
24 |
|
|
|
25 |
@Column(name = "status")
|
|
|
26 |
private String status;
|
|
|
27 |
|
|
|
28 |
@Column(name = "log_time")
|
|
|
29 |
private LocalDateTime logTime;
|
|
|
30 |
|
|
|
31 |
@Column(name = "duration_seconds")
|
|
|
32 |
private int durationSeconds;
|
|
|
33 |
|
|
|
34 |
@Column(name = "duration_display")
|
|
|
35 |
private String durationDisplay;
|
|
|
36 |
|
|
|
37 |
@Column(name = "log_date")
|
|
|
38 |
private LocalDate logDate;
|
|
|
39 |
|
|
|
40 |
@Column(name = "create_timestamp")
|
|
|
41 |
private LocalDateTime createTimestamp;
|
|
|
42 |
|
|
|
43 |
public RbmBreakLog() {
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
public RbmBreakLog(int authId, String agentName, String srNumber, String status,
|
|
|
47 |
LocalDateTime logTime, int durationSeconds, String durationDisplay, LocalDate logDate) {
|
|
|
48 |
this.authId = authId;
|
|
|
49 |
this.agentName = agentName;
|
|
|
50 |
this.srNumber = srNumber;
|
|
|
51 |
this.status = status;
|
|
|
52 |
this.logTime = logTime;
|
|
|
53 |
this.durationSeconds = durationSeconds;
|
|
|
54 |
this.durationDisplay = durationDisplay;
|
|
|
55 |
this.logDate = logDate;
|
|
|
56 |
this.createTimestamp = LocalDateTime.now();
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
public Long getId() {
|
|
|
60 |
return id;
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
public void setId(Long id) {
|
|
|
64 |
this.id = id;
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
public int getAuthId() {
|
|
|
68 |
return authId;
|
|
|
69 |
}
|
|
|
70 |
|
|
|
71 |
public void setAuthId(int authId) {
|
|
|
72 |
this.authId = authId;
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
public String getAgentName() {
|
|
|
76 |
return agentName;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
public void setAgentName(String agentName) {
|
|
|
80 |
this.agentName = agentName;
|
|
|
81 |
}
|
|
|
82 |
|
|
|
83 |
public String getSrNumber() {
|
|
|
84 |
return srNumber;
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
public void setSrNumber(String srNumber) {
|
|
|
88 |
this.srNumber = srNumber;
|
|
|
89 |
}
|
|
|
90 |
|
|
|
91 |
public String getStatus() {
|
|
|
92 |
return status;
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
public void setStatus(String status) {
|
|
|
96 |
this.status = status;
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
public LocalDateTime getLogTime() {
|
|
|
100 |
return logTime;
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
public void setLogTime(LocalDateTime logTime) {
|
|
|
104 |
this.logTime = logTime;
|
|
|
105 |
}
|
|
|
106 |
|
|
|
107 |
public int getDurationSeconds() {
|
|
|
108 |
return durationSeconds;
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
public void setDurationSeconds(int durationSeconds) {
|
|
|
112 |
this.durationSeconds = durationSeconds;
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
public String getDurationDisplay() {
|
|
|
116 |
return durationDisplay;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
public void setDurationDisplay(String durationDisplay) {
|
|
|
120 |
this.durationDisplay = durationDisplay;
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
public LocalDate getLogDate() {
|
|
|
124 |
return logDate;
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
public void setLogDate(LocalDate logDate) {
|
|
|
128 |
this.logDate = logDate;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
public LocalDateTime getCreateTimestamp() {
|
|
|
132 |
return createTimestamp;
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
public void setCreateTimestamp(LocalDateTime createTimestamp) {
|
|
|
136 |
this.createTimestamp = createTimestamp;
|
|
|
137 |
}
|
|
|
138 |
|
|
|
139 |
@Override
|
|
|
140 |
public boolean equals(Object o) {
|
|
|
141 |
if (this == o) return true;
|
|
|
142 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
143 |
RbmBreakLog that = (RbmBreakLog) o;
|
|
|
144 |
return authId == that.authId &&
|
|
|
145 |
durationSeconds == that.durationSeconds &&
|
|
|
146 |
Objects.equals(id, that.id) &&
|
|
|
147 |
Objects.equals(agentName, that.agentName) &&
|
|
|
148 |
Objects.equals(srNumber, that.srNumber) &&
|
|
|
149 |
Objects.equals(status, that.status) &&
|
|
|
150 |
Objects.equals(logTime, that.logTime) &&
|
|
|
151 |
Objects.equals(logDate, that.logDate);
|
|
|
152 |
}
|
|
|
153 |
|
|
|
154 |
@Override
|
|
|
155 |
public int hashCode() {
|
|
|
156 |
return Objects.hash(id, authId, agentName, srNumber, status, logTime, durationSeconds, logDate);
|
|
|
157 |
}
|
|
|
158 |
|
|
|
159 |
@Override
|
|
|
160 |
public String toString() {
|
|
|
161 |
return "RbmBreakLog{" +
|
|
|
162 |
"id=" + id +
|
|
|
163 |
", authId=" + authId +
|
|
|
164 |
", agentName='" + agentName + '\'' +
|
|
|
165 |
", srNumber='" + srNumber + '\'' +
|
|
|
166 |
", status='" + status + '\'' +
|
|
|
167 |
", logTime=" + logTime +
|
|
|
168 |
", durationSeconds=" + durationSeconds +
|
|
|
169 |
", durationDisplay='" + durationDisplay + '\'' +
|
|
|
170 |
", logDate=" + logDate +
|
|
|
171 |
", createTimestamp=" + createTimestamp +
|
|
|
172 |
'}';
|
|
|
173 |
}
|
|
|
174 |
}
|