Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
24440 amit.gupta 1
package com.spice.profitmandi.common.model;
2
 
29707 tejbeer 3
import java.time.LocalDate;
25778 amit.gupta 4
import java.time.LocalDateTime;
29707 tejbeer 5
import java.util.Set;
25778 amit.gupta 6
 
24440 amit.gupta 7
public class InsuranceModel {
8
	private String brand;
25726 amit.gupta 9
	private String color;
25778 amit.gupta 10
	private String ram;
11
	private String memory;
12
	private LocalDateTime mfgDate;
29707 tejbeer 13
	private LocalDate wmfgDate;
29645 amit.gupta 14
	private String modelName;
15
	private float insuranceAmount;
16
	private String insuranceId;
17
	private float deviceSellingPrice;
18
	private String serialNumber;
19
	private String providerName;
20
	private String providerId;
21
	private String underWriterName;
22
	private String underWriterId;
29707 tejbeer 23
	private int customerId;
24
	private String customerEmail;
25
	private LocalDate dob;
26
	private int fofoOrderId;
27
	private int fofoOrderItemId;
28
	private Set<CustomPaymentOption> paymentOptions;
29
 
30
	public Set<CustomPaymentOption> getPaymentOptions() {
31
		return paymentOptions;
32
	}
33
 
34
	public void setPaymentOptions(Set<CustomPaymentOption> paymentOptions) {
35
		this.paymentOptions = paymentOptions;
36
	}
37
 
38
	public int getFofoOrderId() {
39
		return fofoOrderId;
40
	}
41
 
42
	public void setFofoOrderId(int fofoOrderId) {
43
		this.fofoOrderId = fofoOrderId;
44
	}
45
 
46
	public int getFofoOrderItemId() {
47
		return fofoOrderItemId;
48
	}
49
 
50
	public void setFofoOrderItemId(int fofoOrderItemId) {
51
		this.fofoOrderItemId = fofoOrderItemId;
52
	}
53
 
25778 amit.gupta 54
	public String getRam() {
55
		return ram;
56
	}
29707 tejbeer 57
 
25778 amit.gupta 58
	public void setRam(String ram) {
59
		this.ram = ram;
60
	}
29707 tejbeer 61
 
25778 amit.gupta 62
	public String getMemory() {
63
		return memory;
64
	}
29707 tejbeer 65
 
25778 amit.gupta 66
	public void setMemory(String memory) {
67
		this.memory = memory;
68
	}
29707 tejbeer 69
 
25778 amit.gupta 70
	public LocalDateTime getMfgDate() {
71
		return mfgDate;
72
	}
29707 tejbeer 73
 
25778 amit.gupta 74
	public void setMfgDate(LocalDateTime mfgDate) {
75
		this.mfgDate = mfgDate;
76
	}
29707 tejbeer 77
 
25726 amit.gupta 78
	public String getColor() {
79
		return color;
80
	}
29707 tejbeer 81
 
25726 amit.gupta 82
	public void setColor(String color) {
83
		this.color = color;
84
	}
29707 tejbeer 85
 
25726 amit.gupta 86
	public String getSerialNumber() {
87
		return serialNumber;
88
	}
29707 tejbeer 89
 
25726 amit.gupta 90
	public void setSerialNumber(String serialNumber) {
91
		this.serialNumber = serialNumber;
92
	}
29707 tejbeer 93
 
24440 amit.gupta 94
	public float getDeviceSellingPrice() {
95
		return deviceSellingPrice;
96
	}
29707 tejbeer 97
 
24440 amit.gupta 98
	public void setDeviceSellingPrice(float deviceSellingPrice) {
99
		this.deviceSellingPrice = deviceSellingPrice;
100
	}
29707 tejbeer 101
 
24440 amit.gupta 102
	public String getBrand() {
103
		return brand;
104
	}
29707 tejbeer 105
 
24440 amit.gupta 106
	public void setBrand(String brand) {
107
		this.brand = brand;
108
	}
29707 tejbeer 109
 
24440 amit.gupta 110
	public String getModelName() {
111
		return modelName;
112
	}
29707 tejbeer 113
 
24440 amit.gupta 114
	public void setModelName(String modelName) {
115
		this.modelName = modelName;
116
	}
29707 tejbeer 117
 
24440 amit.gupta 118
	public float getInsuranceAmount() {
119
		return insuranceAmount;
120
	}
29707 tejbeer 121
 
24440 amit.gupta 122
	public void setInsuranceAmount(float insuranceAmount) {
123
		this.insuranceAmount = insuranceAmount;
124
	}
29707 tejbeer 125
 
24440 amit.gupta 126
	public String getInsuranceId() {
127
		return insuranceId;
128
	}
29707 tejbeer 129
 
24440 amit.gupta 130
	public void setInsuranceId(String insuranceId) {
131
		this.insuranceId = insuranceId;
132
	}
29707 tejbeer 133
 
24440 amit.gupta 134
	public String getProviderName() {
135
		return providerName;
136
	}
29707 tejbeer 137
 
24440 amit.gupta 138
	public void setProviderName(String providerName) {
139
		this.providerName = providerName;
140
	}
29707 tejbeer 141
 
24440 amit.gupta 142
	public String getProviderId() {
143
		return providerId;
144
	}
29707 tejbeer 145
 
24440 amit.gupta 146
	public void setProviderId(String providerId) {
147
		this.providerId = providerId;
148
	}
29707 tejbeer 149
 
24440 amit.gupta 150
	public String getUnderWriterName() {
151
		return underWriterName;
152
	}
29707 tejbeer 153
 
24440 amit.gupta 154
	public void setUnderWriterName(String underWriterName) {
155
		this.underWriterName = underWriterName;
156
	}
29707 tejbeer 157
 
24440 amit.gupta 158
	public String getUnderWriterId() {
159
		return underWriterId;
160
	}
29707 tejbeer 161
 
24440 amit.gupta 162
	public void setUnderWriterId(String underWriterId) {
163
		this.underWriterId = underWriterId;
164
	}
29707 tejbeer 165
 
166
	public int getCustomerId() {
167
		return customerId;
168
	}
169
 
170
	public void setCustomerId(int customerId) {
171
		this.customerId = customerId;
172
	}
173
 
174
	public String getCustomerEmail() {
175
		return customerEmail;
176
	}
177
 
178
	public void setCustomerEmail(String customerEmail) {
179
		this.customerEmail = customerEmail;
180
	}
181
 
182
	public LocalDate getWmfgDate() {
183
		return wmfgDate;
184
	}
185
 
186
	public void setWmfgDate(LocalDate wmfgDate) {
187
		this.wmfgDate = wmfgDate;
188
	}
189
 
190
	public LocalDate getDob() {
191
		return dob;
192
	}
193
 
194
	public void setDob(LocalDate dob) {
195
		this.dob = dob;
196
	}
197
 
24440 amit.gupta 198
	@Override
199
	public int hashCode() {
200
		final int prime = 31;
201
		int result = 1;
202
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
29707 tejbeer 203
		result = prime * result + ((color == null) ? 0 : color.hashCode());
204
		result = prime * result + ((customerEmail == null) ? 0 : customerEmail.hashCode());
205
		result = prime * result + customerId;
24440 amit.gupta 206
		result = prime * result + Float.floatToIntBits(deviceSellingPrice);
29707 tejbeer 207
		result = prime * result + ((dob == null) ? 0 : dob.hashCode());
208
		result = prime * result + fofoOrderId;
209
		result = prime * result + fofoOrderItemId;
24440 amit.gupta 210
		result = prime * result + Float.floatToIntBits(insuranceAmount);
211
		result = prime * result + ((insuranceId == null) ? 0 : insuranceId.hashCode());
29707 tejbeer 212
		result = prime * result + ((memory == null) ? 0 : memory.hashCode());
213
		result = prime * result + ((mfgDate == null) ? 0 : mfgDate.hashCode());
24440 amit.gupta 214
		result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
215
		result = prime * result + ((providerId == null) ? 0 : providerId.hashCode());
216
		result = prime * result + ((providerName == null) ? 0 : providerName.hashCode());
29707 tejbeer 217
		result = prime * result + ((ram == null) ? 0 : ram.hashCode());
218
		result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
24440 amit.gupta 219
		result = prime * result + ((underWriterId == null) ? 0 : underWriterId.hashCode());
220
		result = prime * result + ((underWriterName == null) ? 0 : underWriterName.hashCode());
29707 tejbeer 221
		result = prime * result + ((wmfgDate == null) ? 0 : wmfgDate.hashCode());
24440 amit.gupta 222
		return result;
223
	}
29707 tejbeer 224
 
24440 amit.gupta 225
	@Override
226
	public boolean equals(Object obj) {
227
		if (this == obj)
228
			return true;
229
		if (obj == null)
230
			return false;
231
		if (getClass() != obj.getClass())
232
			return false;
233
		InsuranceModel other = (InsuranceModel) obj;
234
		if (brand == null) {
235
			if (other.brand != null)
236
				return false;
237
		} else if (!brand.equals(other.brand))
238
			return false;
29707 tejbeer 239
		if (color == null) {
240
			if (other.color != null)
241
				return false;
242
		} else if (!color.equals(other.color))
243
			return false;
244
		if (customerEmail == null) {
245
			if (other.customerEmail != null)
246
				return false;
247
		} else if (!customerEmail.equals(other.customerEmail))
248
			return false;
249
		if (customerId != other.customerId)
250
			return false;
24440 amit.gupta 251
		if (Float.floatToIntBits(deviceSellingPrice) != Float.floatToIntBits(other.deviceSellingPrice))
252
			return false;
29707 tejbeer 253
		if (dob == null) {
254
			if (other.dob != null)
255
				return false;
256
		} else if (!dob.equals(other.dob))
257
			return false;
258
		if (fofoOrderId != other.fofoOrderId)
259
			return false;
260
		if (fofoOrderItemId != other.fofoOrderItemId)
261
			return false;
24440 amit.gupta 262
		if (Float.floatToIntBits(insuranceAmount) != Float.floatToIntBits(other.insuranceAmount))
263
			return false;
264
		if (insuranceId == null) {
265
			if (other.insuranceId != null)
266
				return false;
267
		} else if (!insuranceId.equals(other.insuranceId))
268
			return false;
29707 tejbeer 269
		if (memory == null) {
270
			if (other.memory != null)
271
				return false;
272
		} else if (!memory.equals(other.memory))
273
			return false;
274
		if (mfgDate == null) {
275
			if (other.mfgDate != null)
276
				return false;
277
		} else if (!mfgDate.equals(other.mfgDate))
278
			return false;
24440 amit.gupta 279
		if (modelName == null) {
280
			if (other.modelName != null)
281
				return false;
282
		} else if (!modelName.equals(other.modelName))
283
			return false;
284
		if (providerId == null) {
285
			if (other.providerId != null)
286
				return false;
287
		} else if (!providerId.equals(other.providerId))
288
			return false;
289
		if (providerName == null) {
290
			if (other.providerName != null)
291
				return false;
292
		} else if (!providerName.equals(other.providerName))
293
			return false;
29707 tejbeer 294
		if (ram == null) {
295
			if (other.ram != null)
296
				return false;
297
		} else if (!ram.equals(other.ram))
298
			return false;
299
		if (serialNumber == null) {
300
			if (other.serialNumber != null)
301
				return false;
302
		} else if (!serialNumber.equals(other.serialNumber))
303
			return false;
24440 amit.gupta 304
		if (underWriterId == null) {
305
			if (other.underWriterId != null)
306
				return false;
307
		} else if (!underWriterId.equals(other.underWriterId))
308
			return false;
309
		if (underWriterName == null) {
310
			if (other.underWriterName != null)
311
				return false;
312
		} else if (!underWriterName.equals(other.underWriterName))
313
			return false;
29707 tejbeer 314
		if (wmfgDate == null) {
315
			if (other.wmfgDate != null)
316
				return false;
317
		} else if (!wmfgDate.equals(other.wmfgDate))
318
			return false;
24440 amit.gupta 319
		return true;
320
	}
29707 tejbeer 321
 
322
	@Override
323
	public String toString() {
324
		return "InsuranceModel [brand=" + brand + ", color=" + color + ", ram=" + ram + ", memory=" + memory
325
				+ ", mfgDate=" + mfgDate + ", wmfgDate=" + wmfgDate + ", modelName=" + modelName + ", insuranceAmount="
326
				+ insuranceAmount + ", insuranceId=" + insuranceId + ", deviceSellingPrice=" + deviceSellingPrice
327
				+ ", serialNumber=" + serialNumber + ", providerName=" + providerName + ", providerId=" + providerId
328
				+ ", underWriterName=" + underWriterName + ", underWriterId=" + underWriterId + ", customerId="
329
				+ customerId + ", customerEmail=" + customerEmail + ", dob=" + dob + ", fofoOrderId=" + fofoOrderId
330
				+ ", fofoOrderItemId=" + fofoOrderItemId + "]";
331
	}
332
 
24440 amit.gupta 333
}