Subversion Repositories SmartDukaan

Rev

Rev 21923 | Rev 22242 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21686 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
3
public class CustomCustomer {
22215 ashik.ali 4
	private String firstName;
5
	private String lastName;
6
	private String dateOfBirth;
21686 ashik.ali 7
	private String emailId;
8
	private String mobileNumber;
21915 ashik.ali 9
	private int customerAddressId;
21686 ashik.ali 10
	private CustomAddress address;
11
 
22215 ashik.ali 12
	public String getFirstName() {
13
		return firstName;
21686 ashik.ali 14
	}
22215 ashik.ali 15
	public void setFirstName(String firstName) {
16
		this.firstName = firstName;
21686 ashik.ali 17
	}
22215 ashik.ali 18
	public String getLastName() {
19
		return lastName;
20
	}
21
	public void setLastName(String lastName) {
22
		this.lastName = lastName;
23
	}
24
	public String getDateOfBirth() {
25
		return dateOfBirth;
26
	}
27
	public void setDateOfBirth(String dateOfBirth) {
28
		this.dateOfBirth = dateOfBirth;
29
	}
21686 ashik.ali 30
 
31
	public String getEmailId() {
32
		return emailId;
33
	}
34
	public void setEmailId(String emailId) {
35
		this.emailId = emailId;
36
	}
37
	public String getMobileNumber() {
38
		return mobileNumber;
39
	}
40
	public void setMobileNumber(String mobileNumber) {
41
		this.mobileNumber = mobileNumber;
42
	}
43
	public CustomAddress getAddress() {
44
		return address;
45
	}
46
	public void setAddress(CustomAddress address) {
47
		this.address = address;
48
	}
21915 ashik.ali 49
	public int getCustomerAddressId() {
50
		return customerAddressId;
51
	}
52
	public void setCustomerAddressId(int customerAddressId) {
53
		this.customerAddressId = customerAddressId;
54
	}
21686 ashik.ali 55
	@Override
21923 ashik.ali 56
	public int hashCode() {
57
		final int prime = 31;
58
		int result = 1;
59
		result = prime * result + ((address == null) ? 0 : address.hashCode());
60
		result = prime * result + customerAddressId;
22215 ashik.ali 61
		result = prime * result + ((dateOfBirth == null) ? 0 : dateOfBirth.hashCode());
21923 ashik.ali 62
		result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
22215 ashik.ali 63
		result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
64
		result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
21923 ashik.ali 65
		result = prime * result + ((mobileNumber == null) ? 0 : mobileNumber.hashCode());
66
		return result;
67
	}
68
	@Override
69
	public boolean equals(Object obj) {
70
		if (this == obj)
71
			return true;
72
		if (obj == null)
73
			return false;
74
		if (getClass() != obj.getClass())
75
			return false;
76
		CustomCustomer other = (CustomCustomer) obj;
77
		if (address == null) {
78
			if (other.address != null)
79
				return false;
80
		} else if (!address.equals(other.address))
81
			return false;
82
		if (customerAddressId != other.customerAddressId)
83
			return false;
22215 ashik.ali 84
		if (dateOfBirth == null) {
85
			if (other.dateOfBirth != null)
86
				return false;
87
		} else if (!dateOfBirth.equals(other.dateOfBirth))
88
			return false;
21923 ashik.ali 89
		if (emailId == null) {
90
			if (other.emailId != null)
91
				return false;
92
		} else if (!emailId.equals(other.emailId))
93
			return false;
22215 ashik.ali 94
		if (firstName == null) {
95
			if (other.firstName != null)
96
				return false;
97
		} else if (!firstName.equals(other.firstName))
98
			return false;
99
		if (lastName == null) {
100
			if (other.lastName != null)
101
				return false;
102
		} else if (!lastName.equals(other.lastName))
103
			return false;
21923 ashik.ali 104
		if (mobileNumber == null) {
105
			if (other.mobileNumber != null)
106
				return false;
107
		} else if (!mobileNumber.equals(other.mobileNumber))
108
			return false;
109
		return true;
110
	}
111
	@Override
21686 ashik.ali 112
	public String toString() {
22215 ashik.ali 113
		return "CustomCustomer [firstName=" + firstName + ", lastName=" + lastName + ", dateOfBirth=" + dateOfBirth
114
				+ ", emailId=" + emailId + ", mobileNumber=" + mobileNumber + ", customerAddressId=" + customerAddressId
115
				+ ", address=" + address + "]";
21686 ashik.ali 116
	}
117
 
22215 ashik.ali 118
 
21686 ashik.ali 119
}