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

Merged
pswqm3ot6 merged 1 commits from feature/wy into develop 4 days ago

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

@ -14,21 +14,54 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date; import java.util.Date;
/**
*
* getter/setter
*/
@Data @Data
@Entity @Entity
@DynamicUpdate @DynamicUpdate
public class Question { public class Question {
/**
* id
*/
@Id @Id
private String questionId; private String questionId;
/**
*
*/
private String questionName; private String questionName;
/**
*
*/
private Integer questionScore; private Integer questionScore;
/**
* id
*/
private String questionCreatorId; private String questionCreatorId;
/**
* id
*/
private Integer questionLevelId; private Integer questionLevelId;
/**
* id
*/
private Integer questionTypeId; private Integer questionTypeId;
/**
* id
*/
private Integer questionCategoryId; private Integer questionCategoryId;
/**
*
*/
private String questionDescription; private String questionDescription;
/**
* idA,B,C,D
*/
private String questionOptionIds; private String questionOptionIds;
/**
* idA
*/
private String questionAnswerOptionIds; private String questionAnswerOptionIds;
/** /**
* , Java * , Java

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

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

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

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

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

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

Loading…
Cancel
Save