Subversion Repositories SmartDukaan

Rev

Rev 31860 | Rev 34391 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31860 Rev 32349
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.user;
1
package com.spice.profitmandi.dao.entity.user;
2
 
2
 
3
import java.time.LocalDateTime;
-
 
4
import java.util.List;
-
 
5
 
-
 
6
import javax.persistence.Column;
-
 
7
import javax.persistence.Entity;
-
 
8
import javax.persistence.EnumType;
-
 
9
import javax.persistence.Enumerated;
-
 
10
import javax.persistence.GeneratedValue;
-
 
11
import javax.persistence.GenerationType;
-
 
12
import javax.persistence.Id;
-
 
13
import javax.persistence.Table;
-
 
14
import javax.persistence.Transient;
-
 
15
 
-
 
16
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
3
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
17
import com.spice.profitmandi.dao.enumuration.dtr.VisitStatus;
4
import com.spice.profitmandi.dao.enumuration.dtr.VisitStatus;
18
 
5
 
-
 
6
import javax.persistence.*;
-
 
7
import java.time.LocalDateTime;
-
 
8
import java.util.List;
-
 
9
 
19
@Entity
10
@Entity
20
@Table(name = "user.lead")
11
@Table(name = "user.lead")
21
public class Lead {
12
public class Lead {
22
	@Id
13
	@Id
23
	@Column(name = "id", unique = true, updatable = false)
14
	@Column(name = "id", unique = true, updatable = false)
Line 99... Line 90...
99
 
90
 
100
	public void setLastName(String lastName) {
91
	public void setLastName(String lastName) {
101
		this.lastName = lastName;
92
		this.lastName = lastName;
102
	}
93
	}
103
 
94
 
-
 
95
	public String getFullName() {
-
 
96
		return String.join(", ", firstName, lastName);
-
 
97
	}
-
 
98
 
104
	@Column(name = "last_name")
99
	@Column(name = "last_name")
105
	private String lastName;
100
	private String lastName;
106
 
101
 
107
	@Column(length = 10, name = "mobile")
102
	@Column(length = 10, name = "mobile")
108
	private String leadMobile;
103
	private String leadMobile;