Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6530 vikram.rag 1
package in.shop2020.catalog.dashboard.shared;
2
 
3
import java.io.Serializable;
4
 
5
import com.google.gwt.user.client.rpc.IsSerializable;
6
 
7
@SuppressWarnings("serial")
8
public class ItemWarehouse implements IsSerializable, Serializable {
9
	long itemId;
10
	long warehouseId;
11
	public ItemWarehouse(long item_id,long warehouse_id){
12
		this.itemId = item_id;
13
		this.warehouseId = warehouse_id;
14
	}
15
	public long getItemId() {
16
		return itemId;
17
	}
18
	@Override
19
	public int hashCode() {
20
		final int prime = 31;
21
		int result = 1;
22
		result = prime * result + (int) (itemId ^ (itemId >>> 32));
23
		result = prime * result + (int) (warehouseId ^ (warehouseId >>> 32));
24
		return result;
25
	}
26
	@Override
27
	public boolean equals(Object obj) {
28
		if (this == obj)
29
			return true;
30
		if (obj == null)
31
			return false;
32
		if (getClass() != obj.getClass())
33
			return false;
34
		ItemWarehouse other = (ItemWarehouse) obj;
35
		if (itemId != other.itemId)
36
			return false;
37
		if (warehouseId != other.warehouseId)
38
			return false;
39
		return true;
40
	}
41
	public void setItemId(long itemId) {
42
		this.itemId = itemId;
43
	}
44
	public long getWarehouseId() {
45
		return warehouseId;
46
	}
47
	public void setWarehouseId(long warehouseId) {
48
		this.warehouseId = warehouseId;
49
	}
50
 
51
 
52
}