Subversion Repositories SmartDukaan

Rev

Rev 25979 | Rev 27025 | Go to most recent revision | 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
 
3
import java.time.LocalDateTime;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.EnumType;
8
import javax.persistence.Enumerated;
9
import javax.persistence.GeneratedValue;
10
import javax.persistence.GenerationType;
11
import javax.persistence.Id;
12
import javax.persistence.Table;
25916 amit.gupta 13
import javax.persistence.Transient;
25899 tejbeer 14
 
15
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
16
 
17
@Entity
18
@Table(name = "user.lead", schema = "user")
19
public class Lead {
20
	@Id
21
	@Column(name = "id", unique = true, updatable = false)
22
	@GeneratedValue(strategy = GenerationType.IDENTITY)
23
	private int id;
24
 
25
	@Column(name = "first_name")
26
	private String firstName;
27
 
25979 tejbeer 28
	@Column(name = "source")
29
	private String source;
30
 
26244 tejbeer 31
	@Column(name = "color")
32
	private String color;
33
 
34
	public String getColor() {
35
		return color;
36
	}
37
 
38
	public void setColor(String color) {
39
		this.color = color;
40
	}
41
 
25979 tejbeer 42
	public String getSource() {
43
		return source;
44
	}
45
 
46
	public void setSource(String source) {
47
		this.source = source;
48
	}
49
 
25899 tejbeer 50
	public String getFirstName() {
51
		return firstName;
52
	}
53
 
54
	public void setFirstName(String firstName) {
55
		this.firstName = firstName;
56
	}
57
 
58
	public String getLastName() {
59
		return lastName;
60
	}
61
 
62
	public void setLastName(String lastName) {
63
		this.lastName = lastName;
64
	}
65
 
66
	@Column(name = "last_name")
67
	private String lastName;
68
 
69
	@Column(length = 10, name = "mobile")
70
	private String leadMobile;
71
 
72
	@Column(name = "created_by")
73
	private String createdBy;
74
 
75
	@Column(name = "auth_id")
76
	private int authId;
77
 
78
	public int getAuthId() {
79
		return authId;
80
	}
81
 
25916 amit.gupta 82
	@Transient
83
	private LeadActivity leadActivity;
26244 tejbeer 84
 
25916 amit.gupta 85
	public LeadActivity getLeadActivity() {
86
		return leadActivity;
87
	}
88
 
89
	public void setLeadActivity(LeadActivity leadActivity) {
90
		this.leadActivity = leadActivity;
91
	}
92
 
25899 tejbeer 93
	public void setAuthId(int authId) {
94
		this.authId = authId;
95
	}
96
 
97
	@Column(name = "address")
98
	private String address;
99
 
100
	@Column(name = "city")
101
	private String city;
102
 
103
	@Column(name = "state")
104
	private String state;
105
 
106
	@Column(name = "status")
107
	@Enumerated(EnumType.STRING)
108
	private LeadStatus status;
109
 
25979 tejbeer 110
	@Column(name = "assign_to")
111
	private int assignTo;
112
 
25899 tejbeer 113
	@Column(name = "created_timestamp")
114
	private LocalDateTime createdTimestamp;
115
 
116
	@Column(name = "updated_timestamp")
117
	private LocalDateTime updatedTimestamp;
118
 
25979 tejbeer 119
	public int getAssignTo() {
120
		return assignTo;
121
	}
122
 
123
	public void setAssignTo(int assignTo) {
124
		this.assignTo = assignTo;
125
	}
126
 
25899 tejbeer 127
	public int getId() {
128
		return id;
129
	}
130
 
131
	public void setId(int id) {
132
		this.id = id;
133
	}
134
 
135
	public String getLeadMobile() {
136
		return leadMobile;
137
	}
138
 
139
	public void setLeadMobile(String leadMobile) {
140
		this.leadMobile = leadMobile;
141
	}
142
 
143
	public String getCreatedBy() {
144
		return createdBy;
145
	}
146
 
147
	public void setCreatedBy(String createdBy) {
148
		this.createdBy = createdBy;
149
	}
150
 
151
	public String getAddress() {
152
		return address;
153
	}
154
 
155
	public void setAddress(String address) {
156
		this.address = address;
157
	}
158
 
159
	public String getCity() {
160
		return city;
161
	}
162
 
163
	public void setCity(String city) {
164
		this.city = city;
165
	}
166
 
167
	public String getState() {
168
		return state;
169
	}
170
 
171
	public void setState(String state) {
172
		this.state = state;
173
	}
174
 
175
	public LeadStatus getStatus() {
176
		return status;
177
	}
178
 
179
	public void setStatus(LeadStatus status) {
180
		this.status = status;
181
	}
182
 
183
	public LocalDateTime getCreatedTimestamp() {
184
		return createdTimestamp;
185
	}
186
 
187
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
188
		this.createdTimestamp = createdTimestamp;
189
	}
190
 
191
	public LocalDateTime getUpdatedTimestamp() {
192
		return updatedTimestamp;
193
	}
194
 
195
	public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
196
		this.updatedTimestamp = updatedTimestamp;
197
	}
198
 
199
	@Override
200
	public String toString() {
26244 tejbeer 201
		return "Lead [id=" + id + ", firstName=" + firstName + ", source=" + source + ", color=" + color + ", lastName="
202
				+ lastName + ", leadMobile=" + leadMobile + ", createdBy=" + createdBy + ", authId=" + authId
203
				+ ", leadActivity=" + leadActivity + ", address=" + address + ", city=" + city + ", state=" + state
204
				+ ", status=" + status + ", assignTo=" + assignTo + ", createdTimestamp=" + createdTimestamp
205
				+ ", updatedTimestamp=" + updatedTimestamp + ", getColor()=" + getColor() + ", getSource()="
206
				+ getSource() + ", getFirstName()=" + getFirstName() + ", getLastName()=" + getLastName()
207
				+ ", getAuthId()=" + getAuthId() + ", getLeadActivity()=" + getLeadActivity() + ", getAssignTo()="
208
				+ getAssignTo() + ", getId()=" + getId() + ", getLeadMobile()=" + getLeadMobile() + ", getCreatedBy()="
209
				+ getCreatedBy() + ", getAddress()=" + getAddress() + ", getCity()=" + getCity() + ", getState()="
210
				+ getState() + ", getStatus()=" + getStatus() + ", getCreatedTimestamp()=" + getCreatedTimestamp()
211
				+ ", getUpdatedTimestamp()=" + getUpdatedTimestamp() + ", getClass()=" + getClass() + ", hashCode()="
212
				+ hashCode() + ", toString()=" + super.toString() + "]";
25899 tejbeer 213
	}
214
 
215
}