Subversion Repositories SmartDukaan

Rev

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

Rev 21915 Rev 21923
Line 38... Line 38...
38
		return customerAddressId;
38
		return customerAddressId;
39
	}
39
	}
40
	public void setCustomerAddressId(int customerAddressId) {
40
	public void setCustomerAddressId(int customerAddressId) {
41
		this.customerAddressId = customerAddressId;
41
		this.customerAddressId = customerAddressId;
42
	}
42
	}
-
 
43
	
-
 
44
	
-
 
45
	@Override
-
 
46
	public int hashCode() {
-
 
47
		final int prime = 31;
-
 
48
		int result = 1;
-
 
49
		result = prime * result + ((address == null) ? 0 : address.hashCode());
-
 
50
		result = prime * result + customerAddressId;
-
 
51
		result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
-
 
52
		result = prime * result + ((mobileNumber == null) ? 0 : mobileNumber.hashCode());
-
 
53
		result = prime * result + ((name == null) ? 0 : name.hashCode());
-
 
54
		return result;
-
 
55
	}
-
 
56
	@Override
-
 
57
	public boolean equals(Object obj) {
-
 
58
		if (this == obj)
-
 
59
			return true;
-
 
60
		if (obj == null)
-
 
61
			return false;
-
 
62
		if (getClass() != obj.getClass())
-
 
63
			return false;
-
 
64
		CustomCustomer other = (CustomCustomer) obj;
-
 
65
		if (address == null) {
-
 
66
			if (other.address != null)
-
 
67
				return false;
-
 
68
		} else if (!address.equals(other.address))
-
 
69
			return false;
-
 
70
		if (customerAddressId != other.customerAddressId)
-
 
71
			return false;
-
 
72
		if (emailId == null) {
-
 
73
			if (other.emailId != null)
-
 
74
				return false;
-
 
75
		} else if (!emailId.equals(other.emailId))
-
 
76
			return false;
-
 
77
		if (mobileNumber == null) {
-
 
78
			if (other.mobileNumber != null)
-
 
79
				return false;
-
 
80
		} else if (!mobileNumber.equals(other.mobileNumber))
-
 
81
			return false;
-
 
82
		if (name == null) {
-
 
83
			if (other.name != null)
-
 
84
				return false;
-
 
85
		} else if (!name.equals(other.name))
-
 
86
			return false;
-
 
87
		return true;
-
 
88
	}
43
	@Override
89
	@Override
44
	public String toString() {
90
	public String toString() {
45
		return "CustomCustomer [name=" + name + ", emailId=" + emailId + ", mobileNumber=" + mobileNumber + ", address="
91
		return "CustomCustomer [name=" + name + ", emailId=" + emailId + ", mobileNumber=" + mobileNumber + ", address="
46
				+ address + ", customerAddressId=" + customerAddressId + "]";
92
				+ address + ", customerAddressId=" + customerAddressId + "]";
47
	}
93
	}
48
	
94
	
49
	
-
 
50
	
-
 
51
}
95
}