|
|
|
@ -14,21 +14,54 @@ import org.hibernate.annotations.DynamicUpdate;
|
|
|
|
|
import javax.persistence.Entity;
|
|
|
|
|
import javax.persistence.Id;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 题目实体类,用于存储题目信息
|
|
|
|
|
* 利用注解生成getter/setter方法
|
|
|
|
|
*/
|
|
|
|
|
@Data
|
|
|
|
|
@Entity
|
|
|
|
|
@DynamicUpdate
|
|
|
|
|
public class Question {
|
|
|
|
|
/**
|
|
|
|
|
* 题目id
|
|
|
|
|
*/
|
|
|
|
|
@Id
|
|
|
|
|
private String questionId;
|
|
|
|
|
/**
|
|
|
|
|
* 题目名称
|
|
|
|
|
*/
|
|
|
|
|
private String questionName;
|
|
|
|
|
/**
|
|
|
|
|
* 题目分数
|
|
|
|
|
*/
|
|
|
|
|
private Integer questionScore;
|
|
|
|
|
/**
|
|
|
|
|
* 题目创建人id
|
|
|
|
|
*/
|
|
|
|
|
private String questionCreatorId;
|
|
|
|
|
/**
|
|
|
|
|
* 题目难度id
|
|
|
|
|
*/
|
|
|
|
|
private Integer questionLevelId;
|
|
|
|
|
/**
|
|
|
|
|
* 题目类型id
|
|
|
|
|
*/
|
|
|
|
|
private Integer questionTypeId;
|
|
|
|
|
/**
|
|
|
|
|
* 题目分类id
|
|
|
|
|
*/
|
|
|
|
|
private Integer questionCategoryId;
|
|
|
|
|
/**
|
|
|
|
|
* 题目描述
|
|
|
|
|
*/
|
|
|
|
|
private String questionDescription;
|
|
|
|
|
/**
|
|
|
|
|
* 题目选项id,用逗号隔开,例如:A,B,C,D
|
|
|
|
|
*/
|
|
|
|
|
private String questionOptionIds;
|
|
|
|
|
/**
|
|
|
|
|
* 题目正确答案选项id,用逗号隔开,例如:A
|
|
|
|
|
*/
|
|
|
|
|
private String questionAnswerOptionIds;
|
|
|
|
|
/**
|
|
|
|
|
* 创建时间, 设计表时设置了自动插入当前时间,无需在Java代码中设置了
|
|
|
|
|