Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
22521 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
3
import in.shop2020.model.v1.catalog.ItemType;
4
 
5
public class ItemModel {
6
	private int itemId;
7
	private String brand;
8
	private String modelName;
9
	private String modelNumber;
10
	private String color;
22924 ashik.ali 11
	private String itemType;
22521 ashik.ali 12
	public int getItemId() {
13
		return itemId;
14
	}
15
	public void setItemId(int itemId) {
16
		this.itemId = itemId;
17
	}
18
	public String getBrand() {
19
		return brand;
20
	}
21
	public void setBrand(String brand) {
22
		this.brand = brand;
23
	}
24
	public String getModelName() {
25
		return modelName;
26
	}
27
	public void setModelName(String modelName) {
28
		this.modelName = modelName;
29
	}
30
	public String getModelNumber() {
31
		return modelNumber;
32
	}
33
	public void setModelNumber(String modelNumber) {
34
		this.modelNumber = modelNumber;
35
	}
36
	public String getColor() {
37
		return color;
38
	}
39
	public void setColor(String color) {
40
		this.color = color;
41
	}
22924 ashik.ali 42
	public String getItemType() {
22521 ashik.ali 43
		return itemType;
44
	}
22924 ashik.ali 45
	public void setItemType(String itemType) {
22521 ashik.ali 46
		this.itemType = itemType;
47
	}
48
	@Override
49
	public int hashCode() {
50
		final int prime = 31;
51
		int result = 1;
52
		result = prime * result + itemId;
53
		return result;
54
	}
55
	@Override
56
	public boolean equals(Object obj) {
57
		if (this == obj)
58
			return true;
59
		if (obj == null)
60
			return false;
61
		if (getClass() != obj.getClass())
62
			return false;
63
		ItemModel other = (ItemModel) obj;
64
		if (itemId != other.itemId)
65
			return false;
66
		return true;
67
	}
68
	@Override
69
	public String toString() {
70
		return "ItemModel [itemId=" + itemId + ", brand=" + brand + ", modelName=" + modelName + ", modelNumber="
71
				+ modelNumber + ", color=" + color + ", itemType=" + itemType + "]";
72
	}
73
 
74
 
75
}