Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23638 amit.gupta 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.EnumType;
6
import javax.persistence.Enumerated;
7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
10
import javax.persistence.Table;
11
 
12
import com.spice.profitmandi.dao.enumuration.fofo.ReturnType;
13
 
14
/**
15
 * @author amit
16
 *
17
 */
18
@Entity
19
@Table(name="fofo.customer_return_item", schema = "fofo")
20
public class CustomerReturnItem {
21
 
22
	@Id
23
	@Column(name="id", unique=true, updatable=false)
24
	@GeneratedValue(strategy = GenerationType.IDENTITY)
25
	private int id;
26
 
27
	@Column(name = "fofo_id")
28
	private int fofoId;
29
 
30
	@Column(name="order_item_id")
31
	private int fofoOrderItemId;
32
 
33
	@Column(name = "inventory_item_id")
34
	private int inventoryItemId;
35
 
36
	@Column(name = "quantity")
37
	private int quantity;
38
 
39
	@Column(name = "type")
40
	@Enumerated(EnumType.STRING)
41
	private ReturnType type;
42
 
43
	@Column(name="credit_note_id")
44
	private int creditNoteId;
45
 
46
	public int getId() {
47
		return id;
48
	}
49
 
50
	public void setId(int id) {
51
		this.id = id;
52
	}
53
 
54
	public int getFofoId() {
55
		return fofoId;
56
	}
57
 
58
	public void setFofoId(int fofoId) {
59
		this.fofoId = fofoId;
60
	}
61
 
62
	public int getInventoryItemId() {
63
		return inventoryItemId;
64
	}
65
	public void setInventoryItemId(int inventoryItemId) {
66
		this.inventoryItemId = inventoryItemId;
67
	}
68
 
69
	public int getQuantity() {
70
		return quantity;
71
	}
72
	public void setQuantity(int quantity) {
73
		this.quantity = quantity;
74
	}
75
 
76
	public ReturnType getType() {
77
		return type;
78
	}
79
 
80
	public void setType(ReturnType type) {
81
		this.type = type;
82
	}
83
 
84
	public int getFofoOrderItemId() {
85
		return fofoOrderItemId;
86
	}
87
 
88
	public void setFofoOrderItemId(int fofoOrderItemId) {
89
		this.fofoOrderItemId = fofoOrderItemId;
90
	}
91
 
92
	public int getCreditNoteId() {
93
		return creditNoteId;
94
	}
95
 
96
	public void setCreditNoteId(int creditNoteId) {
97
		this.creditNoteId = creditNoteId;
98
	}
99
 
100
	@Override
101
	public String toString() {
102
		return "CustomerReturn [id=" + id + ", fofoId=" + fofoId + ", fofoOrderItemId=" + fofoOrderItemId
103
				+ ", inventoryItemId=" + inventoryItemId + ", quantity=" + quantity + ", type=" + type
104
				+ ", creditNoteId=" + creditNoteId + "]";
105
	}
106
 
107
 
108
 
109
}