Subversion Repositories SmartDukaan

Rev

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

Rev 22215 Rev 22242
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
3
public class CustomCustomer {
3
public class CustomCustomer {
4
	private String firstName;
4
	private String firstName;
5
	private String lastName;
5
	private String lastName;
6
	private String dateOfBirth;
-
 
7
	private String emailId;
6
	private String emailId;
8
	private String mobileNumber;
7
	private String mobileNumber;
9
	private int customerAddressId;
8
	private int customerAddressId;
10
	private CustomAddress address;
9
	private CustomAddress address;
11
	
10
	
Line 19... Line 18...
19
		return lastName;
18
		return lastName;
20
	}
19
	}
21
	public void setLastName(String lastName) {
20
	public void setLastName(String lastName) {
22
		this.lastName = lastName;
21
		this.lastName = lastName;
23
	}
22
	}
24
	public String getDateOfBirth() {
-
 
25
		return dateOfBirth;
-
 
26
	}
-
 
27
	public void setDateOfBirth(String dateOfBirth) {
-
 
28
		this.dateOfBirth = dateOfBirth;
-
 
29
	}
-
 
30
	
23
	
31
	public String getEmailId() {
24
	public String getEmailId() {
32
		return emailId;
25
		return emailId;
33
	}
26
	}
34
	public void setEmailId(String emailId) {
27
	public void setEmailId(String emailId) {
Line 56... Line 49...
56
	public int hashCode() {
49
	public int hashCode() {
57
		final int prime = 31;
50
		final int prime = 31;
58
		int result = 1;
51
		int result = 1;
59
		result = prime * result + ((address == null) ? 0 : address.hashCode());
52
		result = prime * result + ((address == null) ? 0 : address.hashCode());
60
		result = prime * result + customerAddressId;
53
		result = prime * result + customerAddressId;
61
		result = prime * result + ((dateOfBirth == null) ? 0 : dateOfBirth.hashCode());
-
 
62
		result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
54
		result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
63
		result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
55
		result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
64
		result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
56
		result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
65
		result = prime * result + ((mobileNumber == null) ? 0 : mobileNumber.hashCode());
57
		result = prime * result + ((mobileNumber == null) ? 0 : mobileNumber.hashCode());
66
		return result;
58
		return result;
Line 79... Line 71...
79
				return false;
71
				return false;
80
		} else if (!address.equals(other.address))
72
		} else if (!address.equals(other.address))
81
			return false;
73
			return false;
82
		if (customerAddressId != other.customerAddressId)
74
		if (customerAddressId != other.customerAddressId)
83
			return false;
75
			return false;
84
		if (dateOfBirth == null) {
-
 
85
			if (other.dateOfBirth != null)
-
 
86
				return false;
-
 
87
		} else if (!dateOfBirth.equals(other.dateOfBirth))
-
 
88
			return false;
-
 
89
		if (emailId == null) {
76
		if (emailId == null) {
90
			if (other.emailId != null)
77
			if (other.emailId != null)
91
				return false;
78
				return false;
92
		} else if (!emailId.equals(other.emailId))
79
		} else if (!emailId.equals(other.emailId))
93
			return false;
80
			return false;
Line 108... Line 95...
108
			return false;
95
			return false;
109
		return true;
96
		return true;
110
	}
97
	}
111
	@Override
98
	@Override
112
	public String toString() {
99
	public String toString() {
113
		return "CustomCustomer [firstName=" + firstName + ", lastName=" + lastName + ", dateOfBirth=" + dateOfBirth
100
		return "CustomCustomer [firstName=" + firstName + ", lastName=" + lastName
114
				+ ", emailId=" + emailId + ", mobileNumber=" + mobileNumber + ", customerAddressId=" + customerAddressId
101
				+ ", emailId=" + emailId + ", mobileNumber=" + mobileNumber + ", customerAddressId=" + customerAddressId
115
				+ ", address=" + address + "]";
102
				+ ", address=" + address + "]";
116
	}
103
	}
117
	
104
	
118
	
105