Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23716 amit.gupta 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
5
 
6
import javax.persistence.Column;
7
import javax.persistence.Entity;
8
import javax.persistence.Id;
9
import javax.persistence.Table;
10
 
11
@Entity
12
@Table(name="fofo.fofo_stock_allocation")
13
public class FofoStockAllocation implements Serializable{
14
 
15
	private static final long serialVersionUID = 1L;
16
 
17
	@Id
18
	@Column(name = "item_id")
19
	private int itemId;
20
 
21
	@Column(name = "create_timestamp")
22
	private LocalDateTime createTimestamp = LocalDateTime.now();
23
 
24
	@Column(name = "update_timestamp")
25
	private LocalDateTime updateTimestamp;
26
 
27
	@Column(name = "active")
28
	private boolean active;
29
 
30
	@Column(name = "quantity")
31
	private int quantity;
32
 
33
	@Column(name = "fofo_id")
34
	private int fofoId;
35
 
36
 
37
 
38
 
39
	public int getQuantity() {
40
		return quantity;
41
	}
42
 
43
 
44
 
45
	public void setQuantity(int quantity) {
46
		this.quantity = quantity;
47
	}
48
 
49
 
50
 
51
	public int getFofoId() {
52
		return fofoId;
53
	}
54
 
55
 
56
 
57
	public void setFofoId(int fofoId) {
58
		this.fofoId = fofoId;
59
	}
60
 
61
 
62
 
63
	public int getItemId() {
64
		return itemId;
65
	}
66
 
67
 
68
 
69
	public void setItemId(int itemId) {
70
		this.itemId = itemId;
71
	}
72
 
73
 
74
 
75
 
76
	public boolean isActive() {
77
		return active;
78
	}
79
 
80
 
81
 
82
	public LocalDateTime getCreateTimestamp() {
83
		return createTimestamp;
84
	}
85
 
86
 
87
 
88
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
89
		this.createTimestamp = createTimestamp;
90
	}
91
 
92
 
93
 
94
	public LocalDateTime getUpdateTimestamp() {
95
		return updateTimestamp;
96
	}
97
 
98
 
99
 
100
	public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
101
		this.updateTimestamp = updateTimestamp;
102
	}
103
 
104
 
105
 
106
	public void setActive(boolean active) {
107
		this.active = active;
108
	}
109
 
110
 
111
 
112
	@Override
113
	public String toString() {
114
		return "FofoStockAllocation [itemId=" + itemId + ", createTimestamp=" + createTimestamp + ", updateTimestamp="
115
				+ updateTimestamp + ", active=" + active + ", quantity=" + quantity + ", fofoId=" + fofoId + "]";
116
	}
117
 
118
 
119
}