Rev 27421 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.dtr;import java.time.LocalDateTime;import javax.persistence.Column;import javax.persistence.Convert;import javax.persistence.Entity;import javax.persistence.EnumType;import javax.persistence.Enumerated;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.Table;import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;import com.spice.profitmandi.dao.enumuration.dtr.PunchType;@Entity@Table(name = "dtr.employee_attendance")public class EmployeeAttendance {@Id@Column(name = "id", unique = true, updatable = false)@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name = "user_id")private int userId;@Column(name = "device_id")private int deviceId;@Enumerated(EnumType.STRING)@Column(name = "punch_type")private PunchType punchType;@Column(name = "punch")private String punch;@Convert(converter = LocalDateTimeAttributeConverter.class)@Column(name = "create_timestamp", updatable = false)private LocalDateTime createTimestamp;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getDeviceId() {return deviceId;}public void setDeviceId(int deviceId) {this.deviceId = deviceId;}public int getUserId() {return userId;}public void setUserId(int userId) {this.userId = userId;}public PunchType getPunchType() {return punchType;}public void setPunchType(PunchType punchType) {this.punchType = punchType;}public String getPunch() {return punch;}public void setPunch(String punch) {this.punch = punch;}public LocalDateTime getCreateTimestamp() {return createTimestamp;}public void setCreateTimestamp(LocalDateTime createTimestamp) {this.createTimestamp = createTimestamp;}@Overridepublic String toString() {return "EmployeeAttendance [id=" + id + ", userId=" + userId + ", deviceId=" + deviceId + ", punchType="+ punchType + ", punch=" + punch + ", createTimestamp=" + createTimestamp + "]";}}