package com.rongyichuang.activity.entity;
|
|
import jakarta.persistence.*;
|
|
@Entity
|
@Table(name = "t_activity_judge")
|
public class ActivityJudge {
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
private Long id;
|
|
@Column(name = "activity_id", nullable = false)
|
private Long activityId;
|
|
@Column(name = "judge_id", nullable = false)
|
private Long judgeId;
|
|
@Column(name = "stage_id")
|
private Long stageId; // 如果为null表示所有阶段,否则表示特定阶段
|
|
// 构造函数
|
public ActivityJudge() {}
|
|
public ActivityJudge(Long activityId, Long judgeId, Long stageId) {
|
this.activityId = activityId;
|
this.judgeId = judgeId;
|
this.stageId = stageId;
|
}
|
|
// Getter and Setter methods
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getActivityId() {
|
return activityId;
|
}
|
|
public void setActivityId(Long activityId) {
|
this.activityId = activityId;
|
}
|
|
public Long getJudgeId() {
|
return judgeId;
|
}
|
|
public void setJudgeId(Long judgeId) {
|
this.judgeId = judgeId;
|
}
|
|
public Long getStageId() {
|
return stageId;
|
}
|
|
public void setStageId(Long stageId) {
|
this.stageId = stageId;
|
}
|
|
|
}
|