Subversion Repositories SmartDukaan

Rev

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

Rev 22216 Rev 26817
Line 36... Line 36...
36
	private int id;
36
	private int id;
37
	
37
	
38
	@Column(name="name")
38
	@Column(name="name")
39
	private String name;
39
	private String name;
40
	
40
	
-
 
41
	@Column(name="last_name")
-
 
42
	private String lastName;
-
 
43
	
41
	@Column(name = "line_1")
44
	@Column(name = "line_1")
42
	private String line1;
45
	private String line1;
43
	
46
	
44
	@Column(name = "line_2")
47
	@Column(name = "line_2")
45
	private String line2;
48
	private String line2;
Line 159... Line 162...
159
    
162
    
160
	@Override
163
	@Override
161
	public int hashCode() {
164
	public int hashCode() {
162
		final int prime = 31;
165
		final int prime = 31;
163
		int result = 1;
166
		int result = 1;
-
 
167
		result = prime * result + ((city == null) ? 0 : city.hashCode());
-
 
168
		result = prime * result + ((country == null) ? 0 : country.hashCode());
-
 
169
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
-
 
170
		result = prime * result + customerId;
164
		result = prime * result + id;
171
		result = prime * result + id;
-
 
172
		result = prime * result + ((landmark == null) ? 0 : landmark.hashCode());
-
 
173
		result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
-
 
174
		result = prime * result + ((line1 == null) ? 0 : line1.hashCode());
-
 
175
		result = prime * result + ((line2 == null) ? 0 : line2.hashCode());
-
 
176
		result = prime * result + ((name == null) ? 0 : name.hashCode());
-
 
177
		result = prime * result + ((phoneNumber == null) ? 0 : phoneNumber.hashCode());
-
 
178
		result = prime * result + ((pinCode == null) ? 0 : pinCode.hashCode());
-
 
179
		result = prime * result + ((state == null) ? 0 : state.hashCode());
-
 
180
		result = prime * result + ((updateTimestamp == null) ? 0 : updateTimestamp.hashCode());
165
		return result;
181
		return result;
166
	}
182
	}
167
	@Override
183
	@Override
168
	public boolean equals(Object obj) {
184
	public boolean equals(Object obj) {
169
		if (this == obj)
185
		if (this == obj)
Line 171... Line 187...
171
		if (obj == null)
187
		if (obj == null)
172
			return false;
188
			return false;
173
		if (getClass() != obj.getClass())
189
		if (getClass() != obj.getClass())
174
			return false;
190
			return false;
175
		CustomerAddress other = (CustomerAddress) obj;
191
		CustomerAddress other = (CustomerAddress) obj;
-
 
192
		if (city == null) {
-
 
193
			if (other.city != null)
-
 
194
				return false;
-
 
195
		} else if (!city.equals(other.city))
-
 
196
			return false;
-
 
197
		if (country == null) {
-
 
198
			if (other.country != null)
-
 
199
				return false;
-
 
200
		} else if (!country.equals(other.country))
-
 
201
			return false;
-
 
202
		if (createTimestamp == null) {
-
 
203
			if (other.createTimestamp != null)
-
 
204
				return false;
-
 
205
		} else if (!createTimestamp.equals(other.createTimestamp))
-
 
206
			return false;
-
 
207
		if (customerId != other.customerId)
-
 
208
			return false;
176
		if (id != other.id)
209
		if (id != other.id)
177
			return false;
210
			return false;
-
 
211
		if (landmark == null) {
-
 
212
			if (other.landmark != null)
-
 
213
				return false;
-
 
214
		} else if (!landmark.equals(other.landmark))
-
 
215
			return false;
-
 
216
		if (lastName == null) {
-
 
217
			if (other.lastName != null)
-
 
218
				return false;
-
 
219
		} else if (!lastName.equals(other.lastName))
-
 
220
			return false;
-
 
221
		if (line1 == null) {
-
 
222
			if (other.line1 != null)
-
 
223
				return false;
-
 
224
		} else if (!line1.equals(other.line1))
-
 
225
			return false;
-
 
226
		if (line2 == null) {
-
 
227
			if (other.line2 != null)
-
 
228
				return false;
-
 
229
		} else if (!line2.equals(other.line2))
-
 
230
			return false;
-
 
231
		if (name == null) {
-
 
232
			if (other.name != null)
-
 
233
				return false;
-
 
234
		} else if (!name.equals(other.name))
-
 
235
			return false;
-
 
236
		if (phoneNumber == null) {
-
 
237
			if (other.phoneNumber != null)
-
 
238
				return false;
-
 
239
		} else if (!phoneNumber.equals(other.phoneNumber))
-
 
240
			return false;
-
 
241
		if (pinCode == null) {
-
 
242
			if (other.pinCode != null)
-
 
243
				return false;
-
 
244
		} else if (!pinCode.equals(other.pinCode))
-
 
245
			return false;
-
 
246
		if (state == null) {
-
 
247
			if (other.state != null)
-
 
248
				return false;
-
 
249
		} else if (!state.equals(other.state))
-
 
250
			return false;
-
 
251
		if (updateTimestamp == null) {
-
 
252
			if (other.updateTimestamp != null)
-
 
253
				return false;
-
 
254
		} else if (!updateTimestamp.equals(other.updateTimestamp))
-
 
255
			return false;
178
		return true;
256
		return true;
179
	}
257
	}
-
 
258
	
-
 
259
	
-
 
260
	public String getLastName() {
-
 
261
		return lastName;
-
 
262
	}
-
 
263
	public void setLastName(String lastName) {
-
 
264
		this.lastName = lastName;
-
 
265
	}
180
	@Override
266
	@Override
181
	public String toString() {
267
	public String toString() {
182
		return "CustomerAddress [id=" + id + ", name=" + name + ", line1=" + line1 + ", line2=" + line2 + ", landmark="
268
		return "CustomerAddress [id=" + id + ", name=" + name + ", lastName=" + lastName + ", line1=" + line1
183
				+ landmark + ", city=" + city + ", state=" + state + ", pinCode=" + pinCode + ", country=" + country
269
				+ ", line2=" + line2 + ", landmark=" + landmark + ", city=" + city + ", state=" + state + ", pinCode="
184
				+ ", phoneNumber=" + phoneNumber + ", customerId=" + customerId + ", createTimestamp=" + createTimestamp
270
				+ pinCode + ", country=" + country + ", phoneNumber=" + phoneNumber + ", customerId=" + customerId
185
				+ ", updateTimestamp=" + updateTimestamp + "]";
271
				+ ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp + "]";
186
	}
272
	}
187
    
273
    
188
	
274
	
189
    
275
    
190
}
276
}
191
277