Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23405 amit.gupta 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import java.io.Serializable;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.Id;
8
import javax.persistence.Table;
9
import javax.persistence.Transient;
10
 
11
@Entity
12
@Table(name="fofo.indent_item", schema = "fofo")
13
public class IndentItem implements Serializable {
14
	/**
15
	 * 
16
	 */
17
	private static final long serialVersionUID = 1L;
18
 
19
	/**
20
	 * 
21
	 */
22
 
23
	@Id
24
	@Column(name="indent_id")
25
	int indentId;
26
 
27
	@Id
28
	@Column(name="item_id")
29
	int itemId;
30
 
31
	@Column(name="requested_quantity")
32
	int requestedQuantity;
33
 
34
	@Column(name="allocated_quantity")
35
	int allocatedQuantity;
36
 
37
 
38
	@Transient 
39
	String itemDescription;
40
 
41
	@Transient 
42
	int stockInHand;
43
 
44
	@Transient
45
	int last30DaysSale;
46
 
47
	public int getStockInHand() {
48
		return stockInHand;
49
	}
50
 
51
	public void setStockInHand(int stockInHand) {
52
		this.stockInHand = stockInHand;
53
	}
54
 
55
	public int getLast30DaysSale() {
56
		return last30DaysSale;
57
	}
58
 
59
	public void setLast30DaysSale(int last30DaysSale) {
60
		this.last30DaysSale = last30DaysSale;
61
	}
62
 
63
	public String getItemDescription() {
64
		return itemDescription;
65
	}
66
 
67
	public void setItemDescription(String itemDescription) {
68
		this.itemDescription = itemDescription;
69
	}
70
 
71
	public int getIndentId() {
72
		return indentId;
73
	}
74
 
75
	public void setIndentId(int indentId) {
76
		this.indentId = indentId;
77
	}
78
 
79
	public int getItemId() {
80
		return itemId;
81
	}
82
 
83
	public void setItemId(int itemId) {
84
		this.itemId = itemId;
85
	}
86
 
87
	public int getRequestedQuantity() {
88
		return requestedQuantity;
89
	}
90
 
91
	public void setRequestedQuantity(int requestedQuantity) {
92
		this.requestedQuantity = requestedQuantity;
93
	}
94
 
95
	public int getAllocatedQuantity() {
96
		return allocatedQuantity;
97
	}
98
 
99
	public void setAllocatedQuantity(int allocatedQuantity) {
100
		this.allocatedQuantity = allocatedQuantity;
101
	}
102
 
103
	@Override
104
	public String toString() {
105
		return "IndentItem [indentId=" + indentId + ", itemId=" + itemId + ", requestedQuantity="
106
				+ requestedQuantity + ", allocatedQuantity=" + allocatedQuantity + "]";
107
	}
108
 
109
	@Override
110
	public int hashCode() {
111
		final int prime = 31;
112
		int result = 1;
113
		result = prime * result + indentId;
114
		result = prime * result + itemId;
115
		return result;
116
	}
117
 
118
	@Override
119
	public boolean equals(Object obj) {
120
		if (this == obj)
121
			return true;
122
		if (obj == null)
123
			return false;
124
		if (getClass() != obj.getClass())
125
			return false;
126
		IndentItem other = (IndentItem) obj;
127
		if (indentId != other.indentId)
128
			return false;
129
		if (itemId != other.itemId)
130
			return false;
131
		return true;
132
	}
133
 
134
 
135
 
136
}