Subversion Repositories SmartDukaan

Rev

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

Rev 23654 Rev 24264
Line 30... Line 30...
30
	private int fofoId;
30
	private int fofoId;
31
	
31
	
32
	@Column(name="fofo_order_item_id")
32
	@Column(name="fofo_order_item_id")
33
	private int fofoOrderItemId;
33
	private int fofoOrderItemId;
34
	
34
	
-
 
35
	@Column(name="fofo_order_id")
-
 
36
	private int fofoOrderId;
-
 
37
	
35
	@Column(name = "inventory_item_id")
38
	@Column(name = "inventory_item_id")
36
	private int inventoryItemId;
39
	private int inventoryItemId;
37
	
40
	
-
 
41
	@Override
-
 
42
	public int hashCode() {
-
 
43
		final int prime = 31;
-
 
44
		int result = 1;
-
 
45
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
-
 
46
		result = prime * result + creditNoteId;
-
 
47
		result = prime * result + fofoId;
-
 
48
		result = prime * result + fofoOrderId;
-
 
49
		result = prime * result + fofoOrderItemId;
-
 
50
		result = prime * result + id;
-
 
51
		result = prime * result + inventoryItemId;
-
 
52
		result = prime * result + quantity;
-
 
53
		result = prime * result + ((remarks == null) ? 0 : remarks.hashCode());
-
 
54
		result = prime * result + ((type == null) ? 0 : type.hashCode());
-
 
55
		return result;
-
 
56
	}
-
 
57
 
-
 
58
	@Override
-
 
59
	public boolean equals(Object obj) {
-
 
60
		if (this == obj)
-
 
61
			return true;
-
 
62
		if (obj == null)
-
 
63
			return false;
-
 
64
		if (getClass() != obj.getClass())
-
 
65
			return false;
-
 
66
		CustomerReturnItem other = (CustomerReturnItem) obj;
-
 
67
		if (createTimestamp == null) {
-
 
68
			if (other.createTimestamp != null)
-
 
69
				return false;
-
 
70
		} else if (!createTimestamp.equals(other.createTimestamp))
-
 
71
			return false;
-
 
72
		if (creditNoteId != other.creditNoteId)
-
 
73
			return false;
-
 
74
		if (fofoId != other.fofoId)
-
 
75
			return false;
-
 
76
		if (fofoOrderId != other.fofoOrderId)
-
 
77
			return false;
-
 
78
		if (fofoOrderItemId != other.fofoOrderItemId)
-
 
79
			return false;
-
 
80
		if (id != other.id)
-
 
81
			return false;
-
 
82
		if (inventoryItemId != other.inventoryItemId)
-
 
83
			return false;
-
 
84
		if (quantity != other.quantity)
-
 
85
			return false;
-
 
86
		if (remarks == null) {
-
 
87
			if (other.remarks != null)
-
 
88
				return false;
-
 
89
		} else if (!remarks.equals(other.remarks))
-
 
90
			return false;
-
 
91
		if (type != other.type)
-
 
92
			return false;
-
 
93
		return true;
-
 
94
	}
-
 
95
 
-
 
96
	public int getFofoOrderId() {
-
 
97
		return fofoOrderId;
-
 
98
	}
-
 
99
 
-
 
100
	public void setFofoOrderId(int fofoOrderId) {
-
 
101
		this.fofoOrderId = fofoOrderId;
-
 
102
	}
-
 
103
 
38
	@Column(name = "quantity")
104
	@Column(name = "quantity")
39
	private int quantity;
105
	private int quantity;
40
	
106
	
41
	@Column(name = "remarks")
107
	@Column(name = "remarks")
42
	private String remarks;
108
	private String remarks;
Line 122... Line 188...
122
	}
188
	}
123
 
189
 
124
	@Override
190
	@Override
125
	public String toString() {
191
	public String toString() {
126
		return "CustomerReturnItem [id=" + id + ", fofoId=" + fofoId + ", fofoOrderItemId=" + fofoOrderItemId
192
		return "CustomerReturnItem [id=" + id + ", fofoId=" + fofoId + ", fofoOrderItemId=" + fofoOrderItemId
127
				+ ", inventoryItemId=" + inventoryItemId + ", quantity=" + quantity + ", remarks=" + remarks + ", type="
193
				+ ", fofoOrderId=" + fofoOrderId + ", inventoryItemId=" + inventoryItemId + ", quantity=" + quantity
128
				+ type + ", creditNoteId=" + creditNoteId + ", createTimestamp=" + createTimestamp + "]";
194
				+ ", remarks=" + remarks + ", type=" + type + ", creditNoteId=" + creditNoteId + ", createTimestamp="
-
 
195
				+ createTimestamp + "]";
129
	}
196
	}
130
	
197
	
131
}
198
}
132
199