123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- package smart.gift.domain.entity;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import java.util.Date;
- /**
- * 答题题库(smart_quiz_puzzle_group) 实体类
- *
- * author: Code-gen @ Szu-star
- */
- public class SmartNurseryPuzzleGroupDO {
- /** 题库ID */
- ;
- private Integer puzzelGroupId;
- /** 题库难度(0最小) */
- ;
- private Integer difficulty;
- /** 出现概率 */
- ;
- private Integer probability;
- /** 题库类型 */
- ;
- private Integer groupKind;
- /** 状态 */
- ;
- private Integer status;
- /** 编辑者 */
- ;
- private Integer editBy;
- /** 编辑时间 */
- ;
- @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
- private Date editOn;
- /** 题库名称 */
- ;
- private String name;
- /** 其他 */
- ;
- private String misc;
- /** 题库说明 */
- ;
- private String description;
- /** setter: 题库ID */
- ;
- public void setPuzzelGroupId(Integer puzzelGroupId) {
- this.puzzelGroupId = puzzelGroupId;
- }
- /** getter: 题库ID */
- ;
- public Integer getPuzzelGroupId() {
- return puzzelGroupId;
- }
- /** setter: 题库难度(0最小) */
- ;
- public void setDifficulty(Integer difficulty) {
- this.difficulty = difficulty;
- }
- /** getter: 题库难度(0最小) */
- ;
- public Integer getDifficulty() {
- return difficulty;
- }
- /** setter: 出现概率 */
- ;
- public void setProbability(Integer probability) {
- this.probability = probability;
- }
- /** getter: 出现概率 */
- ;
- public Integer getProbability() {
- return probability;
- }
- /** setter: 题库类型 */
- ;
- public void setGroupKind(Integer groupKind) {
- this.groupKind = groupKind;
- }
- /** getter: 题库类型 */
- ;
- public Integer getGroupKind() {
- return groupKind;
- }
- /** 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 setEditOn(Date editOn) {
- this.editOn = editOn;
- }
- /** getter: 编辑时间 */
- ;
- public Date getEditOn() {
- return editOn;
- }
- /** setter: 题库名称 */
- ;
- public void setName(String name) {
- this.name = name;
- }
- /** getter: 题库名称 */
- ;
- public String getName() {
- return name;
- }
- /** setter: 其他 */
- ;
- public void setMisc(String misc) {
- this.misc = misc;
- }
- /** getter: 其他 */
- ;
- public String getMisc() {
- return misc;
- }
- /** setter: 题库说明 */
- ;
- public void setDescription(String description) {
- this.description = description;
- }
- /** getter: 题库说明 */
- ;
- public String getDescription() {
- return description;
- }
- @Override
- public int hashCode() {
- final int prime = 31;
- int resultHashCode = 1;
- resultHashCode = prime * resultHashCode + ((puzzelGroupId == null) ? 0 : puzzelGroupId.hashCode());
- resultHashCode = prime * resultHashCode + ((difficulty == null) ? 0 : difficulty.hashCode());
- resultHashCode = prime * resultHashCode + ((probability == null) ? 0 : probability.hashCode());
- resultHashCode = prime * resultHashCode + ((groupKind == null) ? 0 : groupKind.hashCode());
- resultHashCode = prime * resultHashCode + ((status == null) ? 0 : status.hashCode());
- resultHashCode = prime * resultHashCode + ((editBy == null) ? 0 : editBy.hashCode());
- resultHashCode = prime * resultHashCode + ((editOn == null) ? 0 : editOn.hashCode());
- resultHashCode = prime * resultHashCode + ((name == null) ? 0 : name.hashCode());
- resultHashCode = prime * resultHashCode + ((misc == null) ? 0 : misc.hashCode());
- resultHashCode = prime * resultHashCode + ((description == null) ? 0 : description.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;
- }
- SmartNurseryPuzzleGroupDO other = (SmartNurseryPuzzleGroupDO) obj;
- if (puzzelGroupId == null) {
- if (other.puzzelGroupId != null) {
- return false;
- }
- } else if (!puzzelGroupId.equals(other.puzzelGroupId)) {
- return false;
- }
- if (difficulty == null) {
- if (other.difficulty != null) {
- return false;
- }
- } else if (!difficulty.equals(other.difficulty)) {
- return false;
- }
- if (probability == null) {
- if (other.probability != null) {
- return false;
- }
- } else if (!probability.equals(other.probability)) {
- return false;
- }
- if (groupKind == null) {
- if (other.groupKind != null) {
- return false;
- }
- } else if (!groupKind.equals(other.groupKind)) {
- 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 (editOn == null) {
- if (other.editOn != null) {
- return false;
- }
- } else if (!editOn.equals(other.editOn)) {
- return false;
- }
- if (name == null) {
- if (other.name != null) {
- return false;
- }
- } else if (!name.equals(other.name)) {
- return false;
- }
- if (misc == null) {
- if (other.misc != null) {
- return false;
- }
- } else if (!misc.equals(other.misc)) {
- return false;
- }
- if (description == null) {
- if (other.description != null) {
- return false;
- }
- } else if (!description.equals(other.description)) {
- return false;
- }
- return true;
- }
- @Override
- public String toString() {
- StringBuffer sb = new StringBuffer();
- sb.append("SmartNurseryPuzzleGroupDO [");
- sb.append("puzzelGroupId=").append(puzzelGroupId).append(",");
- sb.append("difficulty=").append(difficulty).append(",");
- sb.append("probability=").append(probability).append(",");
- sb.append("groupKind=").append(groupKind).append(",");
- sb.append("status=").append(status).append(",");
- sb.append("editBy=").append(editBy).append(",");
- sb.append("editOn=").append(editOn).append(",");
- sb.append("name=").append(name).append(",");
- sb.append("misc=").append(misc).append(",");
- sb.append("description=").append(description);
- sb.append("]");
- return sb.toString();
- }
- }
|