Subversion Repositories SmartDukaan

Rev

Rev 27421 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27421 tejbeer 1
package com.spice.profitmandi.dao.entity.dtr;
2
 
3
import java.time.LocalDateTime;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Convert;
7
import javax.persistence.Entity;
8
import javax.persistence.EnumType;
9
import javax.persistence.Enumerated;
10
import javax.persistence.GeneratedValue;
11
import javax.persistence.GenerationType;
12
import javax.persistence.Id;
13
import javax.persistence.Table;
14
 
15
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
16
import com.spice.profitmandi.dao.enumuration.dtr.PunchType;
17
 
18
@Entity
31860 tejbeer 19
@Table(name = "dtr.employee_attendance")
27421 tejbeer 20
public class EmployeeAttendance {
21
 
22
	@Id
23
	@Column(name = "id", unique = true, updatable = false)
24
	@GeneratedValue(strategy = GenerationType.IDENTITY)
25
	private int id;
26
 
27
	@Column(name = "user_id")
28
	private int userId;
29
 
30
	@Column(name = "device_id")
31
	private int deviceId;
32
 
33
	@Enumerated(EnumType.STRING)
34
	@Column(name = "punch_type")
35
	private PunchType punchType;
36
 
37
	@Column(name = "punch")
38
	private String punch;
39
 
40
	@Convert(converter = LocalDateTimeAttributeConverter.class)
41
	@Column(name = "create_timestamp", updatable = false)
42
	private LocalDateTime createTimestamp;
43
 
44
	public int getId() {
45
		return id;
46
	}
47
 
48
	public void setId(int id) {
49
		this.id = id;
50
	}
51
 
52
	public int getDeviceId() {
53
		return deviceId;
54
	}
55
 
56
	public void setDeviceId(int deviceId) {
57
		this.deviceId = deviceId;
58
	}
59
 
60
	public int getUserId() {
61
		return userId;
62
	}
63
 
64
	public void setUserId(int userId) {
65
		this.userId = userId;
66
	}
67
 
68
	public PunchType getPunchType() {
69
		return punchType;
70
	}
71
 
72
	public void setPunchType(PunchType punchType) {
73
		this.punchType = punchType;
74
	}
75
 
76
	public String getPunch() {
77
		return punch;
78
	}
79
 
80
	public void setPunch(String punch) {
81
		this.punch = punch;
82
	}
83
 
84
	public LocalDateTime getCreateTimestamp() {
85
		return createTimestamp;
86
	}
87
 
88
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
89
		this.createTimestamp = createTimestamp;
90
	}
91
 
92
	@Override
93
	public String toString() {
94
		return "EmployeeAttendance [id=" + id + ", userId=" + userId + ", deviceId=" + deviceId + ", punchType="
95
				+ punchType + ", punch=" + punch + ", createTimestamp=" + createTimestamp + "]";
96
	}
97
 
98
}