更新了entity下的代码注释 (#10)

Co-authored-by: p5yt4qn87 <2058152148@qq.com>
Co-committed-by: p5yt4qn87 <2058152148@qq.com>
feature/wyh
p5yt4qn87 4 days ago committed by pswqm3ot6
parent 17358e7026
commit 2e802ea203

@ -11,17 +11,29 @@ import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
/**
*
* ID
*/
@Data
@Entity
public class Action {
/**
* ID
*/
@Id
@GeneratedValue
private Integer actionId;
/**
*
*/
private String actionName;
/**
*
*/
private String actionDescription;
/**
*
*/
private Boolean defaultCheck;
}

@ -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;
/**
* idA,B,C,D
*/
private String questionOptionIds;
/**
* idA
*/
private String questionAnswerOptionIds;
/**
* , Java

@ -13,19 +13,27 @@ import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
/**
*
*/
@Data
@Entity
public class QuestionCategory {
/**
* id
*/
@Id
@GeneratedValue
@JsonProperty("id")
private Integer questionCategoryId;
/**
*
*/
@JsonProperty("name")
private String questionCategoryName;
/**
*
*/
@JsonProperty("description")
private String questionCategoryDescription;
}

@ -14,17 +14,27 @@ import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
/**
*
*/
@Entity
@Data
public class QuestionLevel {
/**
* ID
*/
@Id
@GeneratedValue
@JsonProperty("id")
private Integer questionLevelId;
/**
*
*/
@JsonProperty("name")
private String questionLevelName;
/**
*
*/
@JsonProperty("description")
private String questionLevelDescription;
}

@ -11,12 +11,23 @@ import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
*
*/
@Data
@Entity
public class QuestionOption {
/**
* ABCD
*/
@Id
private String questionOptionId;
/**
*
*/
private String questionOptionContent;
/**
*
*/
private String questionOptionDescription;
}

@ -14,17 +14,28 @@ import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
/**
* QuestionType
* ID
*/
@Data
@Entity
public class QuestionType {
/**
* ID
*/
@Id
@GeneratedValue
@JsonProperty("id")
private Integer questionTypeId;
/**
*
*/
@JsonProperty("name")
private String questionTypeName;
/**
*
*/
@JsonProperty("description")
private String questionTypeDescription;
}

@ -13,14 +13,31 @@ import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
/**
*
* ID
*/
@Data
@Entity
public class Role {
/**
* ID
* @Id
*/
@Id
@GeneratedValue
private Integer roleId;
/**
*
*/
private String roleName;
/**
*
*/
private String roleDescription;
/**
*
*/
private String roleDetail;
/**
* 访(-)

@ -14,20 +14,49 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;
/**
*
*/
@Data
@Entity
@DynamicUpdate
public class User {
/**
* id
*/
@Id
private String userId;
/**
*
*/
private String userUsername;
/**
*
*/
private String userNickname;
/**
*
*/
private String userPassword;
/**
* id
*/
private Integer userRoleId;
/**
*
*/
private String userAvatar;
/**
*
*/
private String userDescription;
/**
*
*/
private String userEmail;
/**
*
*/
private String userPhone;
/**
* , Java

Loading…
Cancel
Save