|
|
@@ -0,0 +1,55 @@ |
|
|
|
package com.ffii.tsms.modules.data.entity; |
|
|
|
|
|
|
|
import com.ffii.core.entity.BaseEntity; |
|
|
|
import jakarta.persistence.*; |
|
|
|
import jakarta.validation.constraints.NotNull; |
|
|
|
|
|
|
|
import java.time.LocalDate; |
|
|
|
|
|
|
|
@Entity |
|
|
|
@Table(name = "grade_log") |
|
|
|
public class GradeLog extends BaseEntity<Long> { |
|
|
|
|
|
|
|
@NotNull |
|
|
|
@OneToOne |
|
|
|
@JoinColumn(name = "staffId") |
|
|
|
private Staff staff; |
|
|
|
|
|
|
|
@NotNull |
|
|
|
@OneToOne |
|
|
|
@JoinColumn(name = "gradeId") |
|
|
|
private Grade grade; |
|
|
|
|
|
|
|
@NotNull |
|
|
|
@OneToOne |
|
|
|
@JoinColumn(name = "positionId") |
|
|
|
private Position position; |
|
|
|
|
|
|
|
@NotNull |
|
|
|
@Column(name = "from", length = 30) |
|
|
|
private LocalDate from; |
|
|
|
|
|
|
|
@NotNull |
|
|
|
@Column(name = "to", length = 30) |
|
|
|
private LocalDate to; |
|
|
|
|
|
|
|
public Staff getStaff() { |
|
|
|
return staff; |
|
|
|
} |
|
|
|
|
|
|
|
public void setStaff(Staff staff) { |
|
|
|
this.staff = staff; |
|
|
|
} |
|
|
|
|
|
|
|
public Grade getGrade() { return grade; } |
|
|
|
|
|
|
|
public void setGrade(Grade grade) { this.grade = grade; } |
|
|
|
|
|
|
|
public Position getPosition() { return position; } |
|
|
|
|
|
|
|
public void setPosition(Position position) { this.position = position; } |
|
|
|
|
|
|
|
public LocalDate getFrom() { return from; } |
|
|
|
|
|
|
|
public void setFrom(LocalDate from) { this.from = from; } |
|
|
|
} |