Subversion Repositories SmartDukaan

Rev

Rev 35686 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35686 Rev 35724
Line 15... Line 15...
15
                        "WHERE a.customerNumber = :customerNumber " +
15
                        "WHERE a.customerNumber = :customerNumber " +
16
                        "AND a.agentNumber = :agentNumber " +
16
                        "AND a.agentNumber = :agentNumber " +
17
                        "AND a.callDate = :callDate " +
17
                        "AND a.callDate = :callDate " +
18
                        "AND a.callUuid IS NULL " +
18
                        "AND a.callUuid IS NULL " +
19
                        "ORDER BY a.id DESC"
19
                        "ORDER BY a.id DESC"
-
 
20
        ),
-
 
21
        @NamedQuery(
-
 
22
                name = "AgentCallLog.findLatestByAuthId",
-
 
23
                query = "SELECT a FROM AgentCallLog a " +
-
 
24
                        "WHERE a.customerNumber = :customerNumber " +
-
 
25
                        "AND a.authId = :authId " +
-
 
26
                        "AND a.callDate = :callDate " +
-
 
27
                        "AND a.callUuid IS NULL " +
-
 
28
                        "ORDER BY a.id DESC"
20
        )
29
        )
21
})
30
})
22
public class AgentCallLog {
31
public class AgentCallLog {
23
 
32
 
24
    @Id
33
    @Id
Line 44... Line 53...
44
    private String customerNumber;
53
    private String customerNumber;
45
 
54
 
46
    @Column(name = "agent_number")
55
    @Column(name = "agent_number")
47
    private String agentNumber;
56
    private String agentNumber;
48
 
57
 
-
 
58
    @Column(name = "auth_id")
-
 
59
    private long authId;
-
 
60
 
49
    @Column(name = "call_uuid", unique = true)
61
    @Column(name = "call_uuid", unique = true)
50
    private String callUuid;
62
    private String callUuid;
51
 
63
 
52
    @Column(name = "recording_url")
64
    @Column(name = "recording_url")
53
    private String recordingUrl;
65
    private String recordingUrl;
Line 163... Line 175...
163
 
175
 
164
    public void setSipId(String sipId) {
176
    public void setSipId(String sipId) {
165
        this.sipId = sipId;
177
        this.sipId = sipId;
166
    }
178
    }
167
 
179
 
-
 
180
    public long getAuthId() {
-
 
181
        return authId;
-
 
182
    }
-
 
183
 
-
 
184
    public void setAuthId(long authId) {
-
 
185
        this.authId = authId;
-
 
186
    }
-
 
187
 
-
 
188
    @Override
-
 
189
    public boolean equals(Object o) {
-
 
190
        if (this == o) return true;
-
 
191
        if (o == null || getClass() != o.getClass()) return false;
-
 
192
        AgentCallLog that = (AgentCallLog) o;
-
 
193
        return authId == that.authId && Objects.equals(id, that.id) && Objects.equals(callDate, that.callDate) && Objects.equals(callTime, that.callTime) && Objects.equals(callStatus, that.callStatus) && Objects.equals(callDuration, that.callDuration) && Objects.equals(callerId, that.callerId) && Objects.equals(customerNumber, that.customerNumber) && Objects.equals(agentNumber, that.agentNumber) && Objects.equals(callUuid, that.callUuid) && Objects.equals(recordingUrl, that.recordingUrl) && Objects.equals(callTransferDuration, that.callTransferDuration) && Objects.equals(customerStatus, that.customerStatus) && Objects.equals(sipId, that.sipId);
-
 
194
    }
-
 
195
 
168
    @Override
196
    @Override
169
    public String toString() {
197
    public String toString() {
170
        return "AgentCallLog{" +
198
        return "AgentCallLog{" +
171
                "id=" + id +
199
                "id=" + id +
172
                ", callDate=" + callDate +
200
                ", callDate=" + callDate +
Line 174... Line 202...
174
                ", callStatus='" + callStatus + '\'' +
202
                ", callStatus='" + callStatus + '\'' +
175
                ", callDuration='" + callDuration + '\'' +
203
                ", callDuration='" + callDuration + '\'' +
176
                ", callerId='" + callerId + '\'' +
204
                ", callerId='" + callerId + '\'' +
177
                ", customerNumber='" + customerNumber + '\'' +
205
                ", customerNumber='" + customerNumber + '\'' +
178
                ", agentNumber='" + agentNumber + '\'' +
206
                ", agentNumber='" + agentNumber + '\'' +
-
 
207
                ", authId=" + authId +
179
                ", callUuid='" + callUuid + '\'' +
208
                ", callUuid='" + callUuid + '\'' +
180
                ", recordingUrl='" + recordingUrl + '\'' +
209
                ", recordingUrl='" + recordingUrl + '\'' +
181
                ", callTransferDuration='" + callTransferDuration + '\'' +
210
                ", callTransferDuration='" + callTransferDuration + '\'' +
182
                ", customerStatus='" + customerStatus + '\'' +
211
                ", customerStatus='" + customerStatus + '\'' +
183
                ", sipId='" + sipId + '\'' +
212
                ", sipId='" + sipId + '\'' +
184
                '}';
213
                '}';
185
    }
214
    }
186
 
215
 
187
    @Override
216
    @Override
188
    public boolean equals(Object o) {
-
 
189
        if (this == o) return true;
-
 
190
        if (o == null || getClass() != o.getClass()) return false;
-
 
191
        AgentCallLog that = (AgentCallLog) o;
-
 
192
        return Objects.equals(id, that.id) &&
-
 
193
                Objects.equals(callDate, that.callDate) &&
-
 
194
                Objects.equals(callTime, that.callTime) &&
-
 
195
                Objects.equals(callStatus, that.callStatus) &&
-
 
196
                Objects.equals(callDuration, that.callDuration) &&
-
 
197
                Objects.equals(callerId, that.callerId) &&
-
 
198
                Objects.equals(customerNumber, that.customerNumber) &&
-
 
199
                Objects.equals(agentNumber, that.agentNumber) &&
-
 
200
                Objects.equals(callUuid, that.callUuid) &&
-
 
201
                Objects.equals(recordingUrl, that.recordingUrl) &&
-
 
202
                Objects.equals(callTransferDuration, that.callTransferDuration) &&
-
 
203
                Objects.equals(customerStatus, that.customerStatus) &&
-
 
204
                Objects.equals(sipId, that.sipId);
-
 
205
    }
-
 
206
 
-
 
207
    @Override
-
 
208
    public int hashCode() {
217
    public int hashCode() {
209
        return Objects.hash(id, callDate, callTime, callStatus, callDuration, callerId, customerNumber,
218
        return Objects.hash(id, callDate, callTime, callStatus, callDuration, callerId, customerNumber, agentNumber, authId, callUuid, recordingUrl, callTransferDuration, customerStatus, sipId);
210
                agentNumber, callUuid, recordingUrl, callTransferDuration, customerStatus, sipId);
-
 
211
    }
219
    }
-
 
220
 
212
}
221
}