ReadyRoom.java 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. package com.qxgmat.data.dao.entity;
  2. import java.io.Serializable;
  3. import java.util.Date;
  4. import javax.persistence.*;
  5. @Table(name = "ready_room")
  6. public class ReadyRoom implements Serializable {
  7. @Id
  8. @Column(name = "`id`")
  9. @GeneratedValue(strategy = GenerationType.IDENTITY)
  10. private Integer id;
  11. /**
  12. * 区域
  13. */
  14. @Column(name = "`position`")
  15. private String position;
  16. /**
  17. * 省份id
  18. */
  19. @Column(name = "`area_id`")
  20. private Integer areaId;
  21. /**
  22. * 是否海外
  23. */
  24. @Column(name = "`is_overseas`")
  25. private Integer isOverseas;
  26. /**
  27. * 考场名称
  28. */
  29. @Column(name = "`title`")
  30. private String title;
  31. /**
  32. * 考场地址
  33. */
  34. @Column(name = "`address`")
  35. private String address;
  36. @Column(name = "`create_time`")
  37. private Date createTime;
  38. @Column(name = "`update_time`")
  39. private Date updateTime;
  40. /**
  41. * 考场说明
  42. */
  43. @Column(name = "`description`")
  44. private String description;
  45. private static final long serialVersionUID = 1L;
  46. /**
  47. * @return id
  48. */
  49. public Integer getId() {
  50. return id;
  51. }
  52. /**
  53. * @param id
  54. */
  55. public void setId(Integer id) {
  56. this.id = id;
  57. }
  58. /**
  59. * 获取区域
  60. *
  61. * @return position - 区域
  62. */
  63. public String getPosition() {
  64. return position;
  65. }
  66. /**
  67. * 设置区域
  68. *
  69. * @param position 区域
  70. */
  71. public void setPosition(String position) {
  72. this.position = position;
  73. }
  74. /**
  75. * 获取省份id
  76. *
  77. * @return area_id - 省份id
  78. */
  79. public Integer getAreaId() {
  80. return areaId;
  81. }
  82. /**
  83. * 设置省份id
  84. *
  85. * @param areaId 省份id
  86. */
  87. public void setAreaId(Integer areaId) {
  88. this.areaId = areaId;
  89. }
  90. /**
  91. * 获取是否海外
  92. *
  93. * @return is_overseas - 是否海外
  94. */
  95. public Integer getIsOverseas() {
  96. return isOverseas;
  97. }
  98. /**
  99. * 设置是否海外
  100. *
  101. * @param isOverseas 是否海外
  102. */
  103. public void setIsOverseas(Integer isOverseas) {
  104. this.isOverseas = isOverseas;
  105. }
  106. /**
  107. * 获取考场名称
  108. *
  109. * @return title - 考场名称
  110. */
  111. public String getTitle() {
  112. return title;
  113. }
  114. /**
  115. * 设置考场名称
  116. *
  117. * @param title 考场名称
  118. */
  119. public void setTitle(String title) {
  120. this.title = title;
  121. }
  122. /**
  123. * 获取考场地址
  124. *
  125. * @return address - 考场地址
  126. */
  127. public String getAddress() {
  128. return address;
  129. }
  130. /**
  131. * 设置考场地址
  132. *
  133. * @param address 考场地址
  134. */
  135. public void setAddress(String address) {
  136. this.address = address;
  137. }
  138. /**
  139. * @return create_time
  140. */
  141. public Date getCreateTime() {
  142. return createTime;
  143. }
  144. /**
  145. * @param createTime
  146. */
  147. public void setCreateTime(Date createTime) {
  148. this.createTime = createTime;
  149. }
  150. /**
  151. * @return update_time
  152. */
  153. public Date getUpdateTime() {
  154. return updateTime;
  155. }
  156. /**
  157. * @param updateTime
  158. */
  159. public void setUpdateTime(Date updateTime) {
  160. this.updateTime = updateTime;
  161. }
  162. /**
  163. * 获取考场说明
  164. *
  165. * @return description - 考场说明
  166. */
  167. public String getDescription() {
  168. return description;
  169. }
  170. /**
  171. * 设置考场说明
  172. *
  173. * @param description 考场说明
  174. */
  175. public void setDescription(String description) {
  176. this.description = description;
  177. }
  178. @Override
  179. public String toString() {
  180. StringBuilder sb = new StringBuilder();
  181. sb.append(getClass().getSimpleName());
  182. sb.append(" [");
  183. sb.append("Hash = ").append(hashCode());
  184. sb.append(", id=").append(id);
  185. sb.append(", position=").append(position);
  186. sb.append(", areaId=").append(areaId);
  187. sb.append(", isOverseas=").append(isOverseas);
  188. sb.append(", title=").append(title);
  189. sb.append(", address=").append(address);
  190. sb.append(", createTime=").append(createTime);
  191. sb.append(", updateTime=").append(updateTime);
  192. sb.append(", description=").append(description);
  193. sb.append("]");
  194. return sb.toString();
  195. }
  196. public static ReadyRoom.Builder builder() {
  197. return new ReadyRoom.Builder();
  198. }
  199. public static class Builder {
  200. private ReadyRoom obj;
  201. public Builder() {
  202. this.obj = new ReadyRoom();
  203. }
  204. /**
  205. * @param id
  206. */
  207. public Builder id(Integer id) {
  208. obj.setId(id);
  209. return this;
  210. }
  211. /**
  212. * 设置区域
  213. *
  214. * @param position 区域
  215. */
  216. public Builder position(String position) {
  217. obj.setPosition(position);
  218. return this;
  219. }
  220. /**
  221. * 设置省份id
  222. *
  223. * @param areaId 省份id
  224. */
  225. public Builder areaId(Integer areaId) {
  226. obj.setAreaId(areaId);
  227. return this;
  228. }
  229. /**
  230. * 设置是否海外
  231. *
  232. * @param isOverseas 是否海外
  233. */
  234. public Builder isOverseas(Integer isOverseas) {
  235. obj.setIsOverseas(isOverseas);
  236. return this;
  237. }
  238. /**
  239. * 设置考场名称
  240. *
  241. * @param title 考场名称
  242. */
  243. public Builder title(String title) {
  244. obj.setTitle(title);
  245. return this;
  246. }
  247. /**
  248. * 设置考场地址
  249. *
  250. * @param address 考场地址
  251. */
  252. public Builder address(String address) {
  253. obj.setAddress(address);
  254. return this;
  255. }
  256. /**
  257. * @param createTime
  258. */
  259. public Builder createTime(Date createTime) {
  260. obj.setCreateTime(createTime);
  261. return this;
  262. }
  263. /**
  264. * @param updateTime
  265. */
  266. public Builder updateTime(Date updateTime) {
  267. obj.setUpdateTime(updateTime);
  268. return this;
  269. }
  270. /**
  271. * 设置考场说明
  272. *
  273. * @param description 考场说明
  274. */
  275. public Builder description(String description) {
  276. obj.setDescription(description);
  277. return this;
  278. }
  279. public ReadyRoom build() {
  280. return this.obj;
  281. }
  282. }
  283. }