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
 
34
	@Column(name = "type")
35
	@Enumerated(EnumType.STRING)
36
	private ScanType type;
37
 
38
	@Column(name = "create_timestamp")
39
	private LocalDateTime createTimestamp;
40
 
41
	public int getId() {
42
		return id;
43
	}
44
 
45
	public void setId(int id) {
46
		this.id = id;
47
	}
48
 
49
	public int getFofoId() {
50
		return fofoId;
51
	}
52
 
53
	public void setFofoId(int fofoId) {
54
		this.fofoId = fofoId;
55
	}
56
 
57
	public ScanType getType() {
58
		return type;
59
	}
60
 
61
	public void setType(ScanType type) {
62
		this.type = type;
63
	}
64
 
65
	public LocalDateTime getCreateTimestamp() {
66
		return createTimestamp;
67
	}
68
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
69
		this.createTimestamp = createTimestamp;
70
	}
71
 
72
 
73
}