Subversion Repositories SmartDukaan

Rev

Rev 25916 | Go to most recent revision | Details | 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;
13
 
14
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
15
 
16
@Entity
17
@Table(name = "user.lead", schema = "user")
18
public class Lead {
19
	@Id
20
	@Column(name = "id", unique = true, updatable = false)
21
	@GeneratedValue(strategy = GenerationType.IDENTITY)
22
	private int id;
23
 
24
	@Column(name = "first_name")
25
	private String firstName;
26
 
27
	public String getFirstName() {
28
		return firstName;
29
	}
30
 
31
	public void setFirstName(String firstName) {
32
		this.firstName = firstName;
33
	}
34
 
35
	public String getLastName() {
36
		return lastName;
37
	}
38
 
39
	public void setLastName(String lastName) {
40
		this.lastName = lastName;
41
	}
42
 
43
	@Column(name = "last_name")
44
	private String lastName;
45
 
46
	@Column(length = 10, name = "mobile")
47
	private String leadMobile;
48
 
49
	@Column(name = "created_by")
50
	private String createdBy;
51
 
52
	@Column(name = "auth_id")
53
	private int authId;
54
 
55
	public int getAuthId() {
56
		return authId;
57
	}
58
 
59
	public void setAuthId(int authId) {
60
		this.authId = authId;
61
	}
62
 
63
	@Column(name = "address")
64
	private String address;
65
 
66
	@Column(name = "city")
67
	private String city;
68
 
69
	@Column(name = "state")
70
	private String state;
71
 
72
	@Column(name = "status")
73
	@Enumerated(EnumType.STRING)
74
	private LeadStatus status;
75
 
76
	@Column(name = "created_timestamp")
77
	private LocalDateTime createdTimestamp;
78
 
79
	@Column(name = "updated_timestamp")
80
	private LocalDateTime updatedTimestamp;
81
 
82
	public int getId() {
83
		return id;
84
	}
85
 
86
	public void setId(int id) {
87
		this.id = id;
88
	}
89
 
90
	public String getLeadMobile() {
91
		return leadMobile;
92
	}
93
 
94
	public void setLeadMobile(String leadMobile) {
95
		this.leadMobile = leadMobile;
96
	}
97
 
98
	public String getCreatedBy() {
99
		return createdBy;
100
	}
101
 
102
	public void setCreatedBy(String createdBy) {
103
		this.createdBy = createdBy;
104
	}
105
 
106
	public String getAddress() {
107
		return address;
108
	}
109
 
110
	public void setAddress(String address) {
111
		this.address = address;
112
	}
113
 
114
	public String getCity() {
115
		return city;
116
	}
117
 
118
	public void setCity(String city) {
119
		this.city = city;
120
	}
121
 
122
	public String getState() {
123
		return state;
124
	}
125
 
126
	public void setState(String state) {
127
		this.state = state;
128
	}
129
 
130
	public LeadStatus getStatus() {
131
		return status;
132
	}
133
 
134
	public void setStatus(LeadStatus status) {
135
		this.status = status;
136
	}
137
 
138
	public LocalDateTime getCreatedTimestamp() {
139
		return createdTimestamp;
140
	}
141
 
142
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
143
		this.createdTimestamp = createdTimestamp;
144
	}
145
 
146
	public LocalDateTime getUpdatedTimestamp() {
147
		return updatedTimestamp;
148
	}
149
 
150
	public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
151
		this.updatedTimestamp = updatedTimestamp;
152
	}
153
 
154
	@Override
155
	public String toString() {
156
		return "Lead [id=" + id + ", firstName=" + firstName + ", lastName=" + lastName + ", leadMobile=" + leadMobile
157
				+ ", createdBy=" + createdBy + ", authId=" + authId + ", address=" + address + ", city=" + city
158
				+ ", state=" + state + ", status=" + status + ", createdTimestamp=" + createdTimestamp
159
				+ ", updatedTimestamp=" + updatedTimestamp + "]";
160
	}
161
 
162
}