Subversion Repositories SmartDukaan

Rev

Rev 34265 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25899 tejbeer 1
package com.spice.profitmandi.dao.entity.user;
2
 
34265 ranu 3
import com.spice.profitmandi.dao.enumuration.dtr.CommunicationType;
4
 
5
import javax.persistence.*;
25899 tejbeer 6
import java.time.LocalDateTime;
7
 
8
@Entity
31860 tejbeer 9
@Table(name = "user.lead_activity")
25899 tejbeer 10
public class LeadActivity {
11
 
12
	@Id
13
	@Column(name = "id", unique = true, updatable = false)
14
	@GeneratedValue(strategy = GenerationType.IDENTITY)
15
	private int id;
16
 
17
	@Column(name = "lead_id")
18
	private int leadId;
19
 
25930 amit.gupta 20
	@Column(name = "schedule_timestamp")
25899 tejbeer 21
	private LocalDateTime schelduleTimestamp;
22
 
26958 tejbeer 23
	@Column(name = "closure_timestamp")
24
	private LocalDateTime closureTimestamp;
25
 
25899 tejbeer 26
	@Column(name = "remark")
27
	private String remark;
28
 
31249 tejbeer 29
	@Column(name = "communication_type")
30
	@Enumerated(EnumType.STRING)
31
	private CommunicationType communicationType;
32
 
33
	@Column(name = "auth_id")
34
	private int authId;
35
 
34265 ranu 36
	@Column(name = "potential")
37
	private double potential;
38
 
39
	@Column(name = "outlet_name")
40
	private String outletName;
41
 
26958 tejbeer 42
	public LocalDateTime getClosureTimestamp() {
43
		return closureTimestamp;
44
	}
45
 
46
	public void setClosureTimestamp(LocalDateTime closureTimestamp) {
47
		this.closureTimestamp = closureTimestamp;
48
	}
49
 
25899 tejbeer 50
	@Column(name = "created_timestamp")
51
	private LocalDateTime createdTimestamp;
52
 
37651 vikas 53
	/**
54
	 * The {@code user.lead_call} row this trail entry came from, when it was produced by a
55
	 * dispositioned call. Null for visits, stage changes and every pre-dialer activity. Lets the
56
	 * trail render duration and a recording link without re-deriving which call it was — the same
57
	 * shape {@code auth.partner_collection_remark.agent_call_log_id} uses.
58
	 */
59
	@Column(name = "lead_call_id")
60
	private Integer leadCallId;
61
 
62
	public Integer getLeadCallId() {
63
		return leadCallId;
64
	}
65
 
66
	public void setLeadCallId(Integer leadCallId) {
67
		this.leadCallId = leadCallId;
68
	}
69
 
25899 tejbeer 70
	public int getId() {
71
		return id;
72
	}
73
 
74
	public void setId(int id) {
75
		this.id = id;
76
	}
77
 
78
	public int getLeadId() {
79
		return leadId;
80
	}
81
 
82
	public void setLeadId(int leadId) {
83
		this.leadId = leadId;
84
	}
85
 
86
	public LocalDateTime getSchelduleTimestamp() {
87
		return schelduleTimestamp;
88
	}
89
 
90
	public void setSchelduleTimestamp(LocalDateTime schelduleTimestamp) {
91
		this.schelduleTimestamp = schelduleTimestamp;
92
	}
93
 
31249 tejbeer 94
	public CommunicationType getCommunicationType() {
95
		return communicationType;
96
	}
97
 
98
	public void setCommunicationType(CommunicationType communicationType) {
99
		this.communicationType = communicationType;
100
	}
101
 
102
	public int getAuthId() {
103
		return authId;
104
	}
105
 
106
	public void setAuthId(int authId) {
107
		this.authId = authId;
108
	}
109
 
25899 tejbeer 110
	public String getRemark() {
111
		return remark;
112
	}
113
 
114
	public void setRemark(String remark) {
115
		this.remark = remark;
116
	}
117
 
118
	public LocalDateTime getCreatedTimestamp() {
119
		return createdTimestamp;
120
	}
121
 
122
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
123
		this.createdTimestamp = createdTimestamp;
124
	}
125
 
34265 ranu 126
	public double getPotential() {
127
		return potential;
128
	}
129
 
130
	public void setPotential(double potential) {
131
		this.potential = potential;
132
	}
133
 
134
	public String getOutletName() {
135
		return outletName;
136
	}
137
 
138
	public void setOutletName(String outletName) {
139
		this.outletName = outletName;
140
	}
141
 
25899 tejbeer 142
	@Override
143
	public String toString() {
34265 ranu 144
		return "LeadActivity{" +
145
				"id=" + id +
146
				", leadId=" + leadId +
147
				", schelduleTimestamp=" + schelduleTimestamp +
148
				", closureTimestamp=" + closureTimestamp +
149
				", remark='" + remark + '\'' +
150
				", communicationType=" + communicationType +
151
				", authId=" + authId +
152
				", potential=" + potential +
153
				", outletName='" + outletName + '\'' +
154
				", createdTimestamp=" + createdTimestamp +
155
				'}';
25899 tejbeer 156
	}
157
}