81 lines
1.7 KiB
Java
81 lines
1.7 KiB
Java
package com.example.prapro2spring.dto;
|
|
|
|
import com.example.prapro2spring.model.Occupation;
|
|
import com.example.prapro2spring.model.Person;
|
|
import jakarta.persistence.*;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
@Entity
|
|
@Table(name = "occupation_log")
|
|
public class OccupationLogDTO {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
@Column(name = "occupationId")
|
|
private Long occupationId;
|
|
|
|
@Column(name = "humanId")
|
|
private Long personId;
|
|
|
|
@Column(name = "start_timestamp")
|
|
private LocalDateTime startTimestamp;
|
|
|
|
@Column(name = "end_timestamp")
|
|
private LocalDateTime endTimestamp;
|
|
|
|
@Column(name = "grade")
|
|
private Integer grade;
|
|
|
|
// getters and setters
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Long getOccupationId() {
|
|
return occupationId;
|
|
}
|
|
|
|
public void setOccupationId(Long occupationId) {
|
|
this.occupationId = occupationId;
|
|
}
|
|
|
|
public Long getPersonId() {
|
|
return personId;
|
|
}
|
|
|
|
public void setPersonId(Long personId) {
|
|
this.personId = personId;
|
|
}
|
|
|
|
public LocalDateTime getStartTimestamp() {
|
|
return startTimestamp;
|
|
}
|
|
|
|
public void setStartTimestamp(LocalDateTime startTimestamp) {
|
|
this.startTimestamp = startTimestamp;
|
|
}
|
|
|
|
public LocalDateTime getEndTimestamp() {
|
|
return endTimestamp;
|
|
}
|
|
|
|
public void setEndTimestamp(LocalDateTime endTimestamp) {
|
|
this.endTimestamp = endTimestamp;
|
|
}
|
|
|
|
public Integer getGrade() {
|
|
return grade;
|
|
}
|
|
|
|
public void setGrade(Integer grade) {
|
|
this.grade = grade;
|
|
}
|
|
} |