| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- package smart.gift.domain.entity;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import java.util.Date;
- /**
- * 答题答案(smart_quiz_puzzle_answer) 实体类
- *
- * author: Code-gen @ Szu-star
- */
- public class SmartNurseryPuzzleAnswerDO {
- /** 答案ID */
- ;
- private Integer answerId;
- /** 题目ID */
- ;
- private Integer puzzleId;
- /** 正答 */
- ;
- private Integer isCorrect;
- /** 类型(必/可选) */
- ;
- private Integer answerKind;
- /** 解析 */
- ;
- private Integer explanation;
- /** 出现频率 */
- ;
- private Integer probability;
- /** 状态 */
- ;
- private Integer status;
- /** 上传者 */
- ;
- private Integer editBy;
- /** 修改时间 */
- ;
- @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
- private Date editTime;
- /** 选项名 */
- ;
- private String prefix;
- /** 答案内容 */
- ;
- private String content;
- /** setter: 答案ID */
- ;
- public void setAnswerId(Integer answerId) {
- this.answerId = answerId;
- }
- /** getter: 答案ID */
- ;
- public Integer getAnswerId() {
- return answerId;
- }
- /** setter: 题目ID */
- ;
- public void setPuzzleId(Integer puzzleId) {
- this.puzzleId = puzzleId;
- }
- /** getter: 题目ID */
- ;
- public Integer getPuzzleId() {
- return puzzleId;
- }
- /** setter: 正答 */
- ;
- public void setIsCorrect(Integer isCorrect) {
- this.isCorrect = isCorrect;
- }
- /** getter: 正答 */
- ;
- public Integer getIsCorrect() {
- return isCorrect;
- }
- /** setter: 类型(必/可选) */
- ;
- public void setAnswerKind(Integer answerKind) {
- this.answerKind = answerKind;
- }
- /** getter: 类型(必/可选) */
- ;
- public Integer getAnswerKind() {
- return answerKind;
- }
- /** setter: 解析 */
- ;
- public void setExplanation(Integer explanation) {
- this.explanation = explanation;
- }
- /** getter: 解析 */
- ;
- public Integer getExplanation() {
- return explanation;
- }
- /** setter: 出现频率 */
- ;
- public void setProbability(Integer probability) {
- this.probability = probability;
- }
- /** getter: 出现频率 */
- ;
- public Integer getProbability() {
- return probability;
- }
- /** setter: 状态 */
- ;
- public void setStatus(Integer status) {
- this.status = status;
- }
- /** getter: 状态 */
- ;
- public Integer getStatus() {
- return status;
- }
- /** setter: 上传者 */
- ;
- public void setEditBy(Integer editBy) {
- this.editBy = editBy;
- }
- /** getter: 上传者 */
- ;
- public Integer getEditBy() {
- return editBy;
- }
- /** setter: 修改时间 */
- ;
- public void setEditTime(Date editTime) {
- this.editTime = editTime;
- }
- /** getter: 修改时间 */
- ;
- public Date getEditTime() {
- return editTime;
- }
- /** setter: 选项名 */
- ;
- public void setPrefix(String prefix) {
- this.prefix = prefix;
- }
- /** getter: 选项名 */
- ;
- public String getPrefix() {
- return prefix;
- }
- /** setter: 答案内容 */
- ;
- public void setContent(String content) {
- this.content = content;
- }
- /** getter: 答案内容 */
- ;
- public String getContent() {
- return content;
- }
- @Override
- public int hashCode() {
- final int prime = 31;
- int resultHashCode = 1;
- resultHashCode = prime * resultHashCode + ((answerId == null) ? 0 : answerId.hashCode());
- resultHashCode = prime * resultHashCode + ((puzzleId == null) ? 0 : puzzleId.hashCode());
- resultHashCode = prime * resultHashCode + ((isCorrect == null) ? 0 : isCorrect.hashCode());
- resultHashCode = prime * resultHashCode + ((answerKind == null) ? 0 : answerKind.hashCode());
- resultHashCode = prime * resultHashCode + ((explanation == null) ? 0 : explanation.hashCode());
- resultHashCode = prime * resultHashCode + ((probability == null) ? 0 : probability.hashCode());
- resultHashCode = prime * resultHashCode + ((status == null) ? 0 : status.hashCode());
- resultHashCode = prime * resultHashCode + ((editBy == null) ? 0 : editBy.hashCode());
- resultHashCode = prime * resultHashCode + ((editTime == null) ? 0 : editTime.hashCode());
- resultHashCode = prime * resultHashCode + ((prefix == null) ? 0 : prefix.hashCode());
- resultHashCode = prime * resultHashCode + ((content == null) ? 0 : content.hashCode());
- return resultHashCode;
- }
- @Override
- public boolean equals(Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- SmartNurseryPuzzleAnswerDO other = (SmartNurseryPuzzleAnswerDO) obj;
- if (answerId == null) {
- if (other.answerId != null) {
- return false;
- }
- } else if (!answerId.equals(other.answerId)) {
- return false;
- }
- if (puzzleId == null) {
- if (other.puzzleId != null) {
- return false;
- }
- } else if (!puzzleId.equals(other.puzzleId)) {
- return false;
- }
- if (isCorrect == null) {
- if (other.isCorrect != null) {
- return false;
- }
- } else if (!isCorrect.equals(other.isCorrect)) {
- return false;
- }
- if (answerKind == null) {
- if (other.answerKind != null) {
- return false;
- }
- } else if (!answerKind.equals(other.answerKind)) {
- return false;
- }
- if (explanation == null) {
- if (other.explanation != null) {
- return false;
- }
- } else if (!explanation.equals(other.explanation)) {
- return false;
- }
- if (probability == null) {
- if (other.probability != null) {
- return false;
- }
- } else if (!probability.equals(other.probability)) {
- return false;
- }
- if (status == null) {
- if (other.status != null) {
- return false;
- }
- } else if (!status.equals(other.status)) {
- return false;
- }
- if (editBy == null) {
- if (other.editBy != null) {
- return false;
- }
- } else if (!editBy.equals(other.editBy)) {
- return false;
- }
- if (editTime == null) {
- if (other.editTime != null) {
- return false;
- }
- } else if (!editTime.equals(other.editTime)) {
- return false;
- }
- if (prefix == null) {
- if (other.prefix != null) {
- return false;
- }
- } else if (!prefix.equals(other.prefix)) {
- return false;
- }
- if (content == null) {
- if (other.content != null) {
- return false;
- }
- } else if (!content.equals(other.content)) {
- return false;
- }
- return true;
- }
- @Override
- public String toString() {
- StringBuffer sb = new StringBuffer();
- sb.append("SmartNurseryPuzzleAnswerDO [");
- sb.append("answerId=").append(answerId).append(",");
- sb.append("puzzleId=").append(puzzleId).append(",");
- sb.append("isCorrect=").append(isCorrect).append(",");
- sb.append("answerKind=").append(answerKind).append(",");
- sb.append("explanation=").append(explanation).append(",");
- sb.append("probability=").append(probability).append(",");
- sb.append("status=").append(status).append(",");
- sb.append("editBy=").append(editBy).append(",");
- sb.append("editTime=").append(editTime).append(",");
- sb.append("prefix=").append(prefix).append(",");
- sb.append("content=").append(content);
- sb.append("]");
- return sb.toString();
- }
- }
|