SmartNurseryPuzzleGroupDO.java 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. package smart.gift.domain.entity;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import java.util.Date;
  4. /**
  5. * 答题题库(smart_quiz_puzzle_group) 实体类
  6. *
  7. * author: Code-gen @ Szu-star
  8. */
  9. public class SmartNurseryPuzzleGroupDO {
  10. /** 题库ID */
  11. ;
  12. private Integer puzzelGroupId;
  13. /** 题库难度(0最小) */
  14. ;
  15. private Integer difficulty;
  16. /** 出现概率 */
  17. ;
  18. private Integer probability;
  19. /** 题库类型 */
  20. ;
  21. private Integer groupKind;
  22. /** 状态 */
  23. ;
  24. private Integer status;
  25. /** 编辑者 */
  26. ;
  27. private Integer editBy;
  28. /** 编辑时间 */
  29. ;
  30. @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
  31. private Date editOn;
  32. /** 题库名称 */
  33. ;
  34. private String name;
  35. /** 其他 */
  36. ;
  37. private String misc;
  38. /** 题库说明 */
  39. ;
  40. private String description;
  41. /** setter: 题库ID */
  42. ;
  43. public void setPuzzelGroupId(Integer puzzelGroupId) {
  44. this.puzzelGroupId = puzzelGroupId;
  45. }
  46. /** getter: 题库ID */
  47. ;
  48. public Integer getPuzzelGroupId() {
  49. return puzzelGroupId;
  50. }
  51. /** setter: 题库难度(0最小) */
  52. ;
  53. public void setDifficulty(Integer difficulty) {
  54. this.difficulty = difficulty;
  55. }
  56. /** getter: 题库难度(0最小) */
  57. ;
  58. public Integer getDifficulty() {
  59. return difficulty;
  60. }
  61. /** setter: 出现概率 */
  62. ;
  63. public void setProbability(Integer probability) {
  64. this.probability = probability;
  65. }
  66. /** getter: 出现概率 */
  67. ;
  68. public Integer getProbability() {
  69. return probability;
  70. }
  71. /** setter: 题库类型 */
  72. ;
  73. public void setGroupKind(Integer groupKind) {
  74. this.groupKind = groupKind;
  75. }
  76. /** getter: 题库类型 */
  77. ;
  78. public Integer getGroupKind() {
  79. return groupKind;
  80. }
  81. /** setter: 状态 */
  82. ;
  83. public void setStatus(Integer status) {
  84. this.status = status;
  85. }
  86. /** getter: 状态 */
  87. ;
  88. public Integer getStatus() {
  89. return status;
  90. }
  91. /** setter: 编辑者 */
  92. ;
  93. public void setEditBy(Integer editBy) {
  94. this.editBy = editBy;
  95. }
  96. /** getter: 编辑者 */
  97. ;
  98. public Integer getEditBy() {
  99. return editBy;
  100. }
  101. /** setter: 编辑时间 */
  102. ;
  103. public void setEditOn(Date editOn) {
  104. this.editOn = editOn;
  105. }
  106. /** getter: 编辑时间 */
  107. ;
  108. public Date getEditOn() {
  109. return editOn;
  110. }
  111. /** setter: 题库名称 */
  112. ;
  113. public void setName(String name) {
  114. this.name = name;
  115. }
  116. /** getter: 题库名称 */
  117. ;
  118. public String getName() {
  119. return name;
  120. }
  121. /** setter: 其他 */
  122. ;
  123. public void setMisc(String misc) {
  124. this.misc = misc;
  125. }
  126. /** getter: 其他 */
  127. ;
  128. public String getMisc() {
  129. return misc;
  130. }
  131. /** setter: 题库说明 */
  132. ;
  133. public void setDescription(String description) {
  134. this.description = description;
  135. }
  136. /** getter: 题库说明 */
  137. ;
  138. public String getDescription() {
  139. return description;
  140. }
  141. @Override
  142. public int hashCode() {
  143. final int prime = 31;
  144. int resultHashCode = 1;
  145. resultHashCode = prime * resultHashCode + ((puzzelGroupId == null) ? 0 : puzzelGroupId.hashCode());
  146. resultHashCode = prime * resultHashCode + ((difficulty == null) ? 0 : difficulty.hashCode());
  147. resultHashCode = prime * resultHashCode + ((probability == null) ? 0 : probability.hashCode());
  148. resultHashCode = prime * resultHashCode + ((groupKind == null) ? 0 : groupKind.hashCode());
  149. resultHashCode = prime * resultHashCode + ((status == null) ? 0 : status.hashCode());
  150. resultHashCode = prime * resultHashCode + ((editBy == null) ? 0 : editBy.hashCode());
  151. resultHashCode = prime * resultHashCode + ((editOn == null) ? 0 : editOn.hashCode());
  152. resultHashCode = prime * resultHashCode + ((name == null) ? 0 : name.hashCode());
  153. resultHashCode = prime * resultHashCode + ((misc == null) ? 0 : misc.hashCode());
  154. resultHashCode = prime * resultHashCode + ((description == null) ? 0 : description.hashCode());
  155. return resultHashCode;
  156. }
  157. @Override
  158. public boolean equals(Object obj) {
  159. if (this == obj) {
  160. return true;
  161. }
  162. if (obj == null) {
  163. return false;
  164. }
  165. if (getClass() != obj.getClass()) {
  166. return false;
  167. }
  168. SmartNurseryPuzzleGroupDO other = (SmartNurseryPuzzleGroupDO) obj;
  169. if (puzzelGroupId == null) {
  170. if (other.puzzelGroupId != null) {
  171. return false;
  172. }
  173. } else if (!puzzelGroupId.equals(other.puzzelGroupId)) {
  174. return false;
  175. }
  176. if (difficulty == null) {
  177. if (other.difficulty != null) {
  178. return false;
  179. }
  180. } else if (!difficulty.equals(other.difficulty)) {
  181. return false;
  182. }
  183. if (probability == null) {
  184. if (other.probability != null) {
  185. return false;
  186. }
  187. } else if (!probability.equals(other.probability)) {
  188. return false;
  189. }
  190. if (groupKind == null) {
  191. if (other.groupKind != null) {
  192. return false;
  193. }
  194. } else if (!groupKind.equals(other.groupKind)) {
  195. return false;
  196. }
  197. if (status == null) {
  198. if (other.status != null) {
  199. return false;
  200. }
  201. } else if (!status.equals(other.status)) {
  202. return false;
  203. }
  204. if (editBy == null) {
  205. if (other.editBy != null) {
  206. return false;
  207. }
  208. } else if (!editBy.equals(other.editBy)) {
  209. return false;
  210. }
  211. if (editOn == null) {
  212. if (other.editOn != null) {
  213. return false;
  214. }
  215. } else if (!editOn.equals(other.editOn)) {
  216. return false;
  217. }
  218. if (name == null) {
  219. if (other.name != null) {
  220. return false;
  221. }
  222. } else if (!name.equals(other.name)) {
  223. return false;
  224. }
  225. if (misc == null) {
  226. if (other.misc != null) {
  227. return false;
  228. }
  229. } else if (!misc.equals(other.misc)) {
  230. return false;
  231. }
  232. if (description == null) {
  233. if (other.description != null) {
  234. return false;
  235. }
  236. } else if (!description.equals(other.description)) {
  237. return false;
  238. }
  239. return true;
  240. }
  241. @Override
  242. public String toString() {
  243. StringBuffer sb = new StringBuffer();
  244. sb.append("SmartNurseryPuzzleGroupDO [");
  245. sb.append("puzzelGroupId=").append(puzzelGroupId).append(",");
  246. sb.append("difficulty=").append(difficulty).append(",");
  247. sb.append("probability=").append(probability).append(",");
  248. sb.append("groupKind=").append(groupKind).append(",");
  249. sb.append("status=").append(status).append(",");
  250. sb.append("editBy=").append(editBy).append(",");
  251. sb.append("editOn=").append(editOn).append(",");
  252. sb.append("name=").append(name).append(",");
  253. sb.append("misc=").append(misc).append(",");
  254. sb.append("description=").append(description);
  255. sb.append("]");
  256. return sb.toString();
  257. }
  258. }