Subversion Repositories SmartDukaan

Rev

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

Rev 22216 Rev 22243
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.fofo;
1
package com.spice.profitmandi.dao.entity.fofo;
2
 
2
 
3
import java.io.Serializable;
3
import java.io.Serializable;
4
import java.time.LocalDate;
-
 
5
import java.time.LocalDateTime;
4
import java.time.LocalDateTime;
6
import java.util.List;
5
import java.util.List;
7
 
6
 
8
import javax.persistence.CascadeType;
7
import javax.persistence.CascadeType;
9
import javax.persistence.Column;
8
import javax.persistence.Column;
Line 17... Line 16...
17
import javax.persistence.NamedQueries;
16
import javax.persistence.NamedQueries;
18
import javax.persistence.NamedQuery;
17
import javax.persistence.NamedQuery;
19
import javax.persistence.OneToMany;
18
import javax.persistence.OneToMany;
20
import javax.persistence.Table;
19
import javax.persistence.Table;
21
 
20
 
22
import com.spice.profitmandi.dao.convertor.LocalDateAttributeConverter;
-
 
23
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
21
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
24
 
22
 
25
/**
23
/**
26
 * This class basically contains  details
24
 * This class basically contains  details
27
 * 
25
 * 
Line 49... Line 47...
49
	private String firstName;
47
	private String firstName;
50
	
48
	
51
	@Column(name = "last_name", length = 20)
49
	@Column(name = "last_name", length = 20)
52
	private String lastName;
50
	private String lastName;
53
	
51
	
54
	@Convert(converter = LocalDateAttributeConverter.class)
-
 
55
	@Column(name = "date_of_birth")
-
 
56
	private LocalDate dateOfBirth = LocalDate.now();
-
 
57
	
-
 
58
	@Column(name="email_id", length = 20)
52
	@Column(name="email_id", length = 20)
59
	private String emailId;
53
	private String emailId;
60
	
54
	
61
	@Column(name="mobile_number", length = 20)
55
	@Column(name="mobile_number", length = 20)
62
	private String mobileNumber;
56
	private String mobileNumber;
Line 94... Line 88...
94
	}
88
	}
95
	public void setLastName(String lastName) {
89
	public void setLastName(String lastName) {
96
		this.lastName = lastName;
90
		this.lastName = lastName;
97
	}
91
	}
98
	
92
	
99
	public LocalDate getDateOfBirth() {
-
 
100
		return dateOfBirth;
-
 
101
	}
-
 
102
	public void setDateOfBirth(LocalDate dateOfBirth) {
-
 
103
		this.dateOfBirth = dateOfBirth;
-
 
104
	}
-
 
105
	
-
 
106
	public String getEmailId() {
93
	public String getEmailId() {
107
		return emailId;
94
		return emailId;
108
	}
95
	}
109
	public void setEmailId(String emailId) {
96
	public void setEmailId(String emailId) {
110
		this.emailId = emailId;
97
		this.emailId = emailId;
Line 139... Line 126...
139
			return false;
126
			return false;
140
		return true;
127
		return true;
141
	}
128
	}
142
	@Override
129
	@Override
143
	public String toString() {
130
	public String toString() {
144
		return "Customer [id=" + id + ", firstName=" + firstName + ", lastName=" + lastName + ", dateOfBirth="
131
		return "Customer [id=" + id + ", firstName=" + firstName + ", lastName=" + lastName + ", emailId=" + emailId 
145
				+ dateOfBirth + ", emailId=" + emailId + ", mobileNumber=" + mobileNumber + ", createTimestamp="
132
				+ ", mobileNumber=" + mobileNumber + ", createTimestamp=" + createTimestamp + ", customerAddress=" 
146
				+ createTimestamp + ", customerAddress=" + customerAddress + "]";
133
				+ customerAddress + "]";
147
	}
134
	}
148
	
135
	
149
	
136
	
150
}
137
}
151
138