Rev 33585 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.cs;import javax.persistence.*;import java.time.LocalDate;import java.time.LocalDateTime;import java.util.Objects;@Entity@Table(name = "cs.agent_recordings",uniqueConstraints = {@UniqueConstraint(columnNames = "session_id")})public class AgentRecording {@Id@GeneratedValue(strategy = GenerationType.IDENTITY)private Long id;@Column(name = "call_status")private String callStatus;@Column(name = "sme_id")private int smeId;@Column(name = "session_id", unique = true)private String sessionId;@Column(name = "call_mode")private int callMode;@Column(name = "agent_number")private String agentNumber;@Column(name = "customer_number")private String customerNumber;@Column(name = "custom_dtmf")private String customDtmf;@Column(name = "call_duration")private int callDuration;@Column(name = "optional_field")private String optionalField;@Column(name = "response_msg")private String responseMsg;@Column(name = "recording_file")private String recordingFile;@Column(name = "start_time")private LocalDateTime startTime;@Column(name = "end_time")private LocalDateTime endTime;@Column(name = "connected_duration")private int connectedDuration;@Column(name = "agent_leg_status")private int agentLegStatus;@Column(name = "customer_leg_status")private int customerLegStatus;@Column(name = "call_date")private LocalDate callDate;@Column(name = "customer_status")private String customerStatus;@Column(name = "call_uuid")private String callUuid;public Long getId() {return id;}public void setId(Long id) {this.id = id;}public String getCallStatus() {return callStatus;}public void setCallStatus(String callStatus) {this.callStatus = callStatus;}public int getSmeId() {return smeId;}public void setSmeId(int smeId) {this.smeId = smeId;}public String getSessionId() {return sessionId;}public void setSessionId(String sessionId) {this.sessionId = sessionId;}public int getCallMode() {return callMode;}public void setCallMode(int callMode) {this.callMode = callMode;}public String getAgentNumber() {return agentNumber;}public void setAgentNumber(String agentNumber) {this.agentNumber = agentNumber;}public String getCustomerNumber() {return customerNumber;}public void setCustomerNumber(String customerNumber) {this.customerNumber = customerNumber;}public String getCustomDtmf() {return customDtmf;}public void setCustomDtmf(String customDtmf) {this.customDtmf = customDtmf;}public int getCallDuration() {return callDuration;}public void setCallDuration(int callDuration) {this.callDuration = callDuration;}public String getOptionalField() {return optionalField;}public void setOptionalField(String optionalField) {this.optionalField = optionalField;}public String getResponseMsg() {return responseMsg;}public void setResponseMsg(String responseMsg) {this.responseMsg = responseMsg;}public String getRecordingFile() {return recordingFile;}public void setRecordingFile(String recordingFile) {this.recordingFile = recordingFile;}public LocalDateTime getStartTime() {return startTime;}public void setStartTime(LocalDateTime startTime) {this.startTime = startTime;}public LocalDateTime getEndTime() {return endTime;}public void setEndTime(LocalDateTime endTime) {this.endTime = endTime;}public int getConnectedDuration() {return connectedDuration;}public void setConnectedDuration(int connectedDuration) {this.connectedDuration = connectedDuration;}public int getAgentLegStatus() {return agentLegStatus;}public void setAgentLegStatus(int agentLegStatus) {this.agentLegStatus = agentLegStatus;}public int getCustomerLegStatus() {return customerLegStatus;}public void setCustomerLegStatus(int customerLegStatus) {this.customerLegStatus = customerLegStatus;}public LocalDate getCallDate() {return callDate;}public void setCallDate(LocalDate callDate) {this.callDate = callDate;}public String getCustomerStatus() {return customerStatus;}public void setCustomerStatus(String customerStatus) {this.customerStatus = customerStatus;}public String getCallUuid() {return callUuid;}public void setCallUuid(String callUuid) {this.callUuid = callUuid;}@Overridepublic String toString() {return "AgentRecording{" +"id=" + id +", callStatus='" + callStatus + '\'' +", smeId=" + smeId +", sessionId='" + sessionId + '\'' +", callMode=" + callMode +", agentNumber='" + agentNumber + '\'' +", customerNumber='" + customerNumber + '\'' +", customDtmf='" + customDtmf + '\'' +", callDuration=" + callDuration +", optionalField='" + optionalField + '\'' +", responseMsg='" + responseMsg + '\'' +", recordingFile='" + recordingFile + '\'' +", startTime=" + startTime +", endTime=" + endTime +", connectedDuration=" + connectedDuration +", agentLegStatus=" + agentLegStatus +", customerLegStatus=" + customerLegStatus +", callDate=" + callDate +", customerStatus='" + customerStatus + '\'' +", callUuid='" + callUuid + '\'' +'}';}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;AgentRecording that = (AgentRecording) o;return smeId == that.smeId && callMode == that.callMode && callDuration == that.callDuration && connectedDuration == that.connectedDuration && agentLegStatus == that.agentLegStatus && customerLegStatus == that.customerLegStatus && Objects.equals(id, that.id) && Objects.equals(callStatus, that.callStatus) && Objects.equals(sessionId, that.sessionId) && Objects.equals(agentNumber, that.agentNumber) && Objects.equals(customerNumber, that.customerNumber) && Objects.equals(customDtmf, that.customDtmf) && Objects.equals(optionalField, that.optionalField) && Objects.equals(responseMsg, that.responseMsg) && Objects.equals(recordingFile, that.recordingFile) && Objects.equals(startTime, that.startTime) && Objects.equals(endTime, that.endTime) && Objects.equals(callDate, that.callDate) && Objects.equals(customerStatus, that.customerStatus) && Objects.equals(callUuid, that.callUuid);}@Overridepublic int hashCode() {return Objects.hash(id, callStatus, smeId, sessionId, callMode, agentNumber, customerNumber, customDtmf, callDuration, optionalField, responseMsg, recordingFile, startTime, endTime, connectedDuration, agentLegStatus, customerLegStatus, callDate, customerStatus, callUuid);}}