Subversion Repositories SmartDukaan

Rev

Rev 23786 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23786 Rev 24229
Line 18... Line 18...
18
 
18
 
19
	private static final long serialVersionUID = 1L;
19
	private static final long serialVersionUID = 1L;
20
 
20
 
21
	@Id
21
	@Id
22
	@Column(name = "item_id")
22
	@Column(name = "item_id")
23
	private int itemId;
23
	private int catalogId;
24
 
24
 
25
	@Id
25
	@Id
26
	@Column(name = "counter_size")
26
	@Column(name = "counter_size")
27
	@Enumerated(EnumType.STRING)
27
	@Enumerated(EnumType.STRING)
28
	private CounterSize counterSize;
28
	private CounterSize counterSize;
Line 32... Line 32...
32
	
32
	
33
	@Override
33
	@Override
34
	public int hashCode() {
34
	public int hashCode() {
35
		final int prime = 31;
35
		final int prime = 31;
36
		int result = 1;
36
		int result = 1;
37
		result = prime * result + itemId;
37
		result = prime * result + catalogId;
38
		return result;
38
		return result;
39
	}
39
	}
40
 
40
 
41
 
41
 
42
 
42
 
Line 47... Line 47...
47
		if (obj == null)
47
		if (obj == null)
48
			return false;
48
			return false;
49
		if (getClass() != obj.getClass())
49
		if (getClass() != obj.getClass())
50
			return false;
50
			return false;
51
		StockAllocation other = (StockAllocation) obj;
51
		StockAllocation other = (StockAllocation) obj;
52
		if (itemId != other.itemId)
52
		if (catalogId != other.catalogId)
53
			return false;
53
			return false;
54
		return true;
54
		return true;
55
	}
55
	}
56
 
56
 
57
 
57
 
Line 89... Line 89...
89
		this.quantity = quantity;
89
		this.quantity = quantity;
90
	}
90
	}
91
 
91
 
92
 
92
 
93
 
93
 
94
	public int getItemId() {
94
	public int getCatalogId() {
95
		return itemId;
95
		return catalogId;
96
	}
96
	}
97
 
97
 
98
 
98
 
99
 
99
 
100
	public void setItemId(int itemId) {
100
	public void setCatalogId(int catalogId) {
101
		this.itemId = itemId;
101
		this.catalogId = catalogId;
102
	}
102
	}
103
 
103
 
104
	
104
	
105
 
105
 
106
	public CounterSize getCounterSize() {
106
	public CounterSize getCounterSize() {
Line 138... Line 138...
138
	}
138
	}
139
 
139
 
140
 
140
 
141
	@Override
141
	@Override
142
	public String toString() {
142
	public String toString() {
143
		return "StockAllocation [itemId=" + itemId + ", createTimestamp=" + createTimestamp
143
		return "StockAllocation [catalogId=" + catalogId + ", createTimestamp=" + createTimestamp
144
				+ ", updateTimestamp=" + updateTimestamp + ", active=" + active + ", quantity=" + quantity + "]";
144
				+ ", updateTimestamp=" + updateTimestamp + ", active=" + active + ", quantity=" + quantity + "]";
145
	}
145
	}
146
	
146
	
147
	
147
	
148
}
148
}