Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
21552 ashik.ali 1
package com.spice.profitmandi.dao.entity;
2
 
3
import java.time.LocalDateTime;
4
 
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.NamedQueries;
13
import javax.persistence.NamedQuery;
14
import javax.persistence.Table;
15
 
16
import com.spice.profitmandi.dao.enumuration.ScanType;
17
 
18
@Entity
19
@Table(name="fofo.scan_record", schema = "fofo")
20
@NamedQueries({
21
	@NamedQuery(name = "ScanRecord.selectCount", query = "select count(sr) from ScanRecord sr"),
22
	@NamedQuery(name = "ScanRecord.selectByFofoId", query = "select sr from ScanRecord sr where sr.fofoId = :fofoId")
23
})
24
public class ScanRecord {
25
 
26
	@Id
27
	@Column(name="id", unique=true, updatable=false)
28
	@GeneratedValue(strategy = GenerationType.IDENTITY)
29
	private int id;
30
 
31
	@Column(name = "fofo_id")
32
	private int fofoId;
33
 
21573 ashik.ali 34
	@Column(name = "inventory_item_id")
35
	private int inventoryItemId;
36
 
37
	@Column(name = "quantity")
38
	private int quantity;
39
 
21552 ashik.ali 40
	@Column(name = "type")
41
	@Enumerated(EnumType.STRING)
42
	private ScanType type;
43
 
44
	@Column(name = "create_timestamp")
45
	private LocalDateTime createTimestamp;
46
 
47
	public int getId() {
48
		return id;
49
	}
50
 
51
	public void setId(int id) {
52
		this.id = id;
53
	}
54
 
55
	public int getFofoId() {
56
		return fofoId;
57
	}
58
 
59
	public void setFofoId(int fofoId) {
60
		this.fofoId = fofoId;
61
	}
21573 ashik.ali 62
 
63
	public int getInventoryItemId() {
64
		return inventoryItemId;
65
	}
66
	public void setInventoryItemId(int inventoryItemId) {
67
		this.inventoryItemId = inventoryItemId;
68
	}
69
 
70
	public int getQuantity() {
71
		return quantity;
72
	}
73
	public void setQuantity(int quantity) {
74
		this.quantity = quantity;
75
	}
21552 ashik.ali 76
 
77
	public ScanType getType() {
78
		return type;
79
	}
80
 
81
	public void setType(ScanType type) {
82
		this.type = type;
83
	}
84
 
85
	public LocalDateTime getCreateTimestamp() {
86
		return createTimestamp;
87
	}
88
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
89
		this.createTimestamp = createTimestamp;
90
	}
21602 ashik.ali 91
 
92
	@Override
93
	public String toString() {
94
		return "ScanRecord [id=" + id + ", fofoId=" + fofoId + ", inventoryItemId=" + inventoryItemId + ", quantity="
95
				+ quantity + ", type=" + type + ", createTimestamp=" + createTimestamp + "]";
96
	}
97
 
98
 
21573 ashik.ali 99
 
100
}