123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- package com.qxgmat.data.dao.entity;
- import java.io.Serializable;
- import java.util.Date;
- import javax.persistence.*;
- @Table(name = "ready_room")
- public class ReadyRoom implements Serializable {
- @Id
- @Column(name = "`id`")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
- /**
- * 区域
- */
- @Column(name = "`position`")
- private String position;
- /**
- * 省份id
- */
- @Column(name = "`area_id`")
- private Integer areaId;
- /**
- * 是否海外
- */
- @Column(name = "`is_overseas`")
- private Integer isOverseas;
- /**
- * 考场名称
- */
- @Column(name = "`title`")
- private String title;
- /**
- * 考场地址
- */
- @Column(name = "`address`")
- private String address;
- @Column(name = "`create_time`")
- private Date createTime;
- @Column(name = "`update_time`")
- private Date updateTime;
- /**
- * 考场说明
- */
- @Column(name = "`description`")
- private String description;
- private static final long serialVersionUID = 1L;
- /**
- * @return id
- */
- public Integer getId() {
- return id;
- }
- /**
- * @param id
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- * 获取区域
- *
- * @return position - 区域
- */
- public String getPosition() {
- return position;
- }
- /**
- * 设置区域
- *
- * @param position 区域
- */
- public void setPosition(String position) {
- this.position = position;
- }
- /**
- * 获取省份id
- *
- * @return area_id - 省份id
- */
- public Integer getAreaId() {
- return areaId;
- }
- /**
- * 设置省份id
- *
- * @param areaId 省份id
- */
- public void setAreaId(Integer areaId) {
- this.areaId = areaId;
- }
- /**
- * 获取是否海外
- *
- * @return is_overseas - 是否海外
- */
- public Integer getIsOverseas() {
- return isOverseas;
- }
- /**
- * 设置是否海外
- *
- * @param isOverseas 是否海外
- */
- public void setIsOverseas(Integer isOverseas) {
- this.isOverseas = isOverseas;
- }
- /**
- * 获取考场名称
- *
- * @return title - 考场名称
- */
- public String getTitle() {
- return title;
- }
- /**
- * 设置考场名称
- *
- * @param title 考场名称
- */
- public void setTitle(String title) {
- this.title = title;
- }
- /**
- * 获取考场地址
- *
- * @return address - 考场地址
- */
- public String getAddress() {
- return address;
- }
- /**
- * 设置考场地址
- *
- * @param address 考场地址
- */
- public void setAddress(String address) {
- this.address = address;
- }
- /**
- * @return create_time
- */
- public Date getCreateTime() {
- return createTime;
- }
- /**
- * @param createTime
- */
- public void setCreateTime(Date createTime) {
- this.createTime = createTime;
- }
- /**
- * @return update_time
- */
- public Date getUpdateTime() {
- return updateTime;
- }
- /**
- * @param updateTime
- */
- public void setUpdateTime(Date updateTime) {
- this.updateTime = updateTime;
- }
- /**
- * 获取考场说明
- *
- * @return description - 考场说明
- */
- public String getDescription() {
- return description;
- }
- /**
- * 设置考场说明
- *
- * @param description 考场说明
- */
- public void setDescription(String description) {
- this.description = description;
- }
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append(getClass().getSimpleName());
- sb.append(" [");
- sb.append("Hash = ").append(hashCode());
- sb.append(", id=").append(id);
- sb.append(", position=").append(position);
- sb.append(", areaId=").append(areaId);
- sb.append(", isOverseas=").append(isOverseas);
- sb.append(", title=").append(title);
- sb.append(", address=").append(address);
- sb.append(", createTime=").append(createTime);
- sb.append(", updateTime=").append(updateTime);
- sb.append(", description=").append(description);
- sb.append("]");
- return sb.toString();
- }
- public static ReadyRoom.Builder builder() {
- return new ReadyRoom.Builder();
- }
- public static class Builder {
- private ReadyRoom obj;
- public Builder() {
- this.obj = new ReadyRoom();
- }
- /**
- * @param id
- */
- public Builder id(Integer id) {
- obj.setId(id);
- return this;
- }
- /**
- * 设置区域
- *
- * @param position 区域
- */
- public Builder position(String position) {
- obj.setPosition(position);
- return this;
- }
- /**
- * 设置省份id
- *
- * @param areaId 省份id
- */
- public Builder areaId(Integer areaId) {
- obj.setAreaId(areaId);
- return this;
- }
- /**
- * 设置是否海外
- *
- * @param isOverseas 是否海外
- */
- public Builder isOverseas(Integer isOverseas) {
- obj.setIsOverseas(isOverseas);
- return this;
- }
- /**
- * 设置考场名称
- *
- * @param title 考场名称
- */
- public Builder title(String title) {
- obj.setTitle(title);
- return this;
- }
- /**
- * 设置考场地址
- *
- * @param address 考场地址
- */
- public Builder address(String address) {
- obj.setAddress(address);
- return this;
- }
- /**
- * @param createTime
- */
- public Builder createTime(Date createTime) {
- obj.setCreateTime(createTime);
- return this;
- }
- /**
- * @param updateTime
- */
- public Builder updateTime(Date updateTime) {
- obj.setUpdateTime(updateTime);
- return this;
- }
- /**
- * 设置考场说明
- *
- * @param description 考场说明
- */
- public Builder description(String description) {
- obj.setDescription(description);
- return this;
- }
- public ReadyRoom build() {
- return this.obj;
- }
- }
- }
|