Subversion Repositories SmartDukaan

Rev

Rev 23638 | Rev 24264 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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