Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
24099 amit.gupta 1
package com.spice.profitmandi.dao.entity.user;
2
 
3
import java.io.Serializable;
4
import java.time.LocalDate;
5
import java.time.LocalDateTime;
6
 
7
import javax.persistence.Column;
8
import javax.persistence.Entity;
9
import javax.persistence.Id;
10
import javax.persistence.Table;
11
 
12
@Entity
31860 tejbeer 13
@Table(name = "user.attendance")
24099 amit.gupta 14
public class Attendance implements Serializable {
15
 
16
	private static final long serialVersionUID = 1L;
17
 
18
	@Id
19
	@Column(name = "user_id")
20
	private int userId;
21
 
22
	@Id
23
	@Column(name = "on_date")
24
	private LocalDate onDate;
25
 
26
	@Column(name = "in_timestamp")
27
	private LocalDateTime inTimestamp;
28
 
29
	@Column(name = "out_timestamp")
30
	private LocalDateTime outTimestamp;
31
 
32
 
33
	public int getUserId() {
34
		return userId;
35
	}
36
 
37
 
38
	public void setUserId(int userId) {
39
		this.userId = userId;
40
	}
41
 
42
 
43
	public LocalDate getOnDate() {
44
		return onDate;
45
	}
46
 
47
 
48
	public void setOnDate(LocalDate onDate) {
49
		this.onDate = onDate;
50
	}
51
 
52
 
53
	public LocalDateTime getInTimestamp() {
54
		return inTimestamp;
55
	}
56
 
57
 
58
	public void setInTimestamp(LocalDateTime inTimestamp) {
59
		this.inTimestamp = inTimestamp;
60
	}
61
 
62
 
63
	public LocalDateTime getOutTimestamp() {
64
		return outTimestamp;
65
	}
66
 
67
 
68
	public void setOutTimestamp(LocalDateTime outTimestamp) {
69
		this.outTimestamp = outTimestamp;
70
	}
71
 
72
 
73
	@Override
74
	public String toString() {
75
		return "Attendance [userId=" + userId + ", onDate=" + onDate + ", inTimestamp=" + inTimestamp
76
				+ ", outTimestamp=" + outTimestamp + "]";
77
	}
78
 
79
 
80
 
81
 
82
}