Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33715 ranu 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import com.spice.profitmandi.dao.enumuration.transaction.UpSaleCallStatus;
4
 
5
import javax.persistence.*;
6
import java.io.Serializable;
7
import java.time.LocalDateTime;
8
import java.util.Objects;
9
 
10
/**
11
 * @author ranu
12
 */
13
@Entity
14
@Table(name = "fofo.upsell_call_details")
15
public class UpsellCallDetail implements Serializable {
16
 
17
 
18
    private static final long serialVersionUID = 1L;
19
    @Id
20
    @Column(name = "id")
21
    @GeneratedValue(strategy = GenerationType.IDENTITY)
22
    private int id;
23
 
24
    @Column(name = "upsale_call_id")
25
    private String upSaleCallId;
26
 
27
    @Column(name = "disposition")
28
    @Enumerated(EnumType.STRING)
29
    private UpSaleCallStatus disposition;
30
 
31
    @Column(name = "remark")
32
    private String remark;
33
 
34
    @Column(name = "agent_id")
35
    private String agentId;
36
 
37
    @Column(name = "dialler_session_id")
38
    private String diallerSessionId;
39
 
40
    @Column(name = "created_timestamp")
41
    private LocalDateTime createdTimestamp = LocalDateTime.now();
42
 
43
    public int getId() {
44
        return id;
45
    }
46
 
47
    public void setId(int id) {
48
        this.id = id;
49
    }
50
 
51
    public String getUpSaleCallId() {
52
        return upSaleCallId;
53
    }
54
 
55
    public void setUpSaleCallId(String upSaleCallId) {
56
        this.upSaleCallId = upSaleCallId;
57
    }
58
 
59
    public UpSaleCallStatus getDisposition() {
60
        return disposition;
61
    }
62
 
63
    public void setDisposition(UpSaleCallStatus disposition) {
64
        this.disposition = disposition;
65
    }
66
 
67
    public String getRemark() {
68
        return remark;
69
    }
70
 
71
    public void setRemark(String remark) {
72
        this.remark = remark;
73
    }
74
 
75
    public String getAgentId() {
76
        return agentId;
77
    }
78
 
79
    public void setAgentId(String agentId) {
80
        this.agentId = agentId;
81
    }
82
 
83
    public String getDiallerSessionId() {
84
        return diallerSessionId;
85
    }
86
 
87
    public void setDiallerSessionId(String diallerSessionId) {
88
        this.diallerSessionId = diallerSessionId;
89
    }
90
 
91
    public LocalDateTime getCreatedTimestamp() {
92
        return createdTimestamp;
93
    }
94
 
95
    public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
96
        this.createdTimestamp = createdTimestamp;
97
    }
98
 
99
    @Override
100
    public String toString() {
101
        return "UpsellCallDetail{" +
102
                "id=" + id +
103
                ", upSaleCallId='" + upSaleCallId + '\'' +
104
                ", disposition=" + disposition +
105
                ", remark='" + remark + '\'' +
106
                ", agentId='" + agentId + '\'' +
107
                ", diallerSessionId='" + diallerSessionId + '\'' +
108
                ", createdTimestamp=" + createdTimestamp +
109
                '}';
110
    }
111
 
112
    @Override
113
    public boolean equals(Object o) {
114
        if (this == o) return true;
115
        if (o == null || getClass() != o.getClass()) return false;
116
        UpsellCallDetail that = (UpsellCallDetail) o;
117
        return id == that.id && Objects.equals(upSaleCallId, that.upSaleCallId) && disposition == that.disposition && Objects.equals(remark, that.remark) && Objects.equals(agentId, that.agentId) && Objects.equals(diallerSessionId, that.diallerSessionId) && Objects.equals(createdTimestamp, that.createdTimestamp);
118
    }
119
 
120
    @Override
121
    public int hashCode() {
122
        return Objects.hash(id, upSaleCallId, disposition, remark, agentId, diallerSessionId, createdTimestamp);
123
    }
124
}