Subversion Repositories SmartDukaan

Rev

Rev 23716 | Details | Compare with Previous | 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;
24673 amit.gupta 32
 
33
	@Id
23716 amit.gupta 34
	@Column(name = "fofo_id")
35
	private int fofoId;
36
 
37
 
38
 
39
 
40
	public int getQuantity() {
41
		return quantity;
42
	}
43
 
44
 
45
 
46
	public void setQuantity(int quantity) {
47
		this.quantity = quantity;
48
	}
49
 
50
 
51
 
52
	public int getFofoId() {
53
		return fofoId;
54
	}
55
 
56
 
57
 
58
	public void setFofoId(int fofoId) {
59
		this.fofoId = fofoId;
60
	}
61
 
62
 
63
 
64
	public int getItemId() {
65
		return itemId;
66
	}
67
 
68
 
69
 
70
	public void setItemId(int itemId) {
71
		this.itemId = itemId;
72
	}
73
 
74
 
75
 
76
 
77
	public boolean isActive() {
78
		return active;
79
	}
80
 
81
 
82
 
83
	public LocalDateTime getCreateTimestamp() {
84
		return createTimestamp;
85
	}
86
 
87
 
88
 
89
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
90
		this.createTimestamp = createTimestamp;
91
	}
92
 
93
 
94
 
95
	public LocalDateTime getUpdateTimestamp() {
96
		return updateTimestamp;
97
	}
98
 
99
 
100
 
101
	public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
102
		this.updateTimestamp = updateTimestamp;
103
	}
104
 
105
 
106
 
107
	public void setActive(boolean active) {
108
		this.active = active;
109
	}
110
 
111
 
112
 
113
	@Override
114
	public String toString() {
115
		return "FofoStockAllocation [itemId=" + itemId + ", createTimestamp=" + createTimestamp + ", updateTimestamp="
116
				+ updateTimestamp + ", active=" + active + ", quantity=" + quantity + ", fofoId=" + fofoId + "]";
117
	}
118
 
119
 
120
}