package org.linlinjava.jz.db.domain;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class HmNotice extends HmNoticeExt {
	 
	
	/**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.id
     *
     * @mbg.generated
     */
    private Long id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.title
     *
     * @mbg.generated
     */
    private String title;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.content
     *
     * @mbg.generated
     */
    private String content;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.employ_relation_id
     *
     * @mbg.generated
     */
    private Long employRelationId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.notice_user_type
     *
     * @mbg.generated
     */
    private String noticeUserType;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.r_type
     *
     * @mbg.generated
     */
    private String rType;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.r_id
     *
     * @mbg.generated
     */
    private String rId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.ticket_id
     *
     * @mbg.generated
     */
    private Integer ticketId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.input_json
     *
     * @mbg.generated
     */
    private String inputJson;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.create_user_id
     *
     * @mbg.generated
     */
    private Long createUserId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.create_time
     *
     * @mbg.generated
     */
    private LocalDateTime createTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.update_time
     *
     * @mbg.generated
     */
    private LocalDateTime updateTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.id_delete
     *
     * @mbg.generated
     */
    private Integer idDelete;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_notice.remark
     *
     * @mbg.generated
     */
    private String remark;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.id
     *
     * @return the value of hm_notice.id
     *
     * @mbg.generated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.id
     *
     * @param id the value for hm_notice.id
     *
     * @mbg.generated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.title
     *
     * @return the value of hm_notice.title
     *
     * @mbg.generated
     */
    public String getTitle() {
        return title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.title
     *
     * @param title the value for hm_notice.title
     *
     * @mbg.generated
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.content
     *
     * @return the value of hm_notice.content
     *
     * @mbg.generated
     */
    public String getContent() {
        return content;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.content
     *
     * @param content the value for hm_notice.content
     *
     * @mbg.generated
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.employ_relation_id
     *
     * @return the value of hm_notice.employ_relation_id
     *
     * @mbg.generated
     */
    public Long getEmployRelationId() {
        return employRelationId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.employ_relation_id
     *
     * @param employRelationId the value for hm_notice.employ_relation_id
     *
     * @mbg.generated
     */
    public void setEmployRelationId(Long employRelationId) {
        this.employRelationId = employRelationId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.notice_user_type
     *
     * @return the value of hm_notice.notice_user_type
     *
     * @mbg.generated
     */
    public String getNoticeUserType() {
        return noticeUserType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.notice_user_type
     *
     * @param noticeUserType the value for hm_notice.notice_user_type
     *
     * @mbg.generated
     */
    public void setNoticeUserType(String noticeUserType) {
        this.noticeUserType = noticeUserType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.r_type
     *
     * @return the value of hm_notice.r_type
     *
     * @mbg.generated
     */
    public String getrType() {
        return rType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.r_type
     *
     * @param rType the value for hm_notice.r_type
     *
     * @mbg.generated
     */
    public void setrType(String rType) {
        this.rType = rType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.r_id
     *
     * @return the value of hm_notice.r_id
     *
     * @mbg.generated
     */
    public String getrId() {
        return rId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.r_id
     *
     * @param rId the value for hm_notice.r_id
     *
     * @mbg.generated
     */
    public void setrId(String rId) {
        this.rId = rId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.ticket_id
     *
     * @return the value of hm_notice.ticket_id
     *
     * @mbg.generated
     */
    public Integer getTicketId() {
        return ticketId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.ticket_id
     *
     * @param ticketId the value for hm_notice.ticket_id
     *
     * @mbg.generated
     */
    public void setTicketId(Integer ticketId) {
        this.ticketId = ticketId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.input_json
     *
     * @return the value of hm_notice.input_json
     *
     * @mbg.generated
     */
    public String getInputJson() {
        return inputJson;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.input_json
     *
     * @param inputJson the value for hm_notice.input_json
     *
     * @mbg.generated
     */
    public void setInputJson(String inputJson) {
        this.inputJson = inputJson;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.create_user_id
     *
     * @return the value of hm_notice.create_user_id
     *
     * @mbg.generated
     */
    public Long getCreateUserId() {
        return createUserId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.create_user_id
     *
     * @param createUserId the value for hm_notice.create_user_id
     *
     * @mbg.generated
     */
    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.create_time
     *
     * @return the value of hm_notice.create_time
     *
     * @mbg.generated
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.create_time
     *
     * @param createTime the value for hm_notice.create_time
     *
     * @mbg.generated
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.update_time
     *
     * @return the value of hm_notice.update_time
     *
     * @mbg.generated
     */
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.update_time
     *
     * @param updateTime the value for hm_notice.update_time
     *
     * @mbg.generated
     */
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.id_delete
     *
     * @return the value of hm_notice.id_delete
     *
     * @mbg.generated
     */
    public Integer getIdDelete() {
        return idDelete;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.id_delete
     *
     * @param idDelete the value for hm_notice.id_delete
     *
     * @mbg.generated
     */
    public void setIdDelete(Integer idDelete) {
        this.idDelete = idDelete;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_notice.remark
     *
     * @return the value of hm_notice.remark
     *
     * @mbg.generated
     */
    public String getRemark() {
        return remark;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_notice.remark
     *
     * @param remark the value for hm_notice.remark
     *
     * @mbg.generated
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_notice
     *
     * @mbg.generated
     */
    @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(", title=").append(title);
        sb.append(", content=").append(content);
        sb.append(", employRelationId=").append(employRelationId);
        sb.append(", noticeUserType=").append(noticeUserType);
        sb.append(", rType=").append(rType);
        sb.append(", rId=").append(rId);
        sb.append(", ticketId=").append(ticketId);
        sb.append(", inputJson=").append(inputJson);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", idDelete=").append(idDelete);
        sb.append(", remark=").append(remark);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_notice
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HmNotice other = (HmNotice) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getEmployRelationId() == null ? other.getEmployRelationId() == null : this.getEmployRelationId().equals(other.getEmployRelationId()))
            && (this.getNoticeUserType() == null ? other.getNoticeUserType() == null : this.getNoticeUserType().equals(other.getNoticeUserType()))
            && (this.getrType() == null ? other.getrType() == null : this.getrType().equals(other.getrType()))
            && (this.getrId() == null ? other.getrId() == null : this.getrId().equals(other.getrId()))
            && (this.getTicketId() == null ? other.getTicketId() == null : this.getTicketId().equals(other.getTicketId()))
            && (this.getInputJson() == null ? other.getInputJson() == null : this.getInputJson().equals(other.getInputJson()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIdDelete() == null ? other.getIdDelete() == null : this.getIdDelete().equals(other.getIdDelete()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_notice
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getEmployRelationId() == null) ? 0 : getEmployRelationId().hashCode());
        result = prime * result + ((getNoticeUserType() == null) ? 0 : getNoticeUserType().hashCode());
        result = prime * result + ((getrType() == null) ? 0 : getrType().hashCode());
        result = prime * result + ((getrId() == null) ? 0 : getrId().hashCode());
        result = prime * result + ((getTicketId() == null) ? 0 : getTicketId().hashCode());
        result = prime * result + ((getInputJson() == null) ? 0 : getInputJson().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIdDelete() == null) ? 0 : getIdDelete().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table hm_notice
     *
     * @mbg.generated
     */
    public enum Column {
        id("id", "id", "BIGINT", false),
        title("title", "title", "VARCHAR", false),
        content("content", "content", "VARCHAR", false),
        employRelationId("employ_relation_id", "employRelationId", "BIGINT", false),
        noticeUserType("notice_user_type", "noticeUserType", "VARCHAR", false),
        rType("r_type", "rType", "VARCHAR", false),
        rId("r_id", "rId", "VARCHAR", false),
        ticketId("ticket_id", "ticketId", "INTEGER", false),
        inputJson("input_json", "inputJson", "VARCHAR", false),
        createUserId("create_user_id", "createUserId", "BIGINT", false),
        createTime("create_time", "createTime", "TIMESTAMP", false),
        updateTime("update_time", "updateTime", "TIMESTAMP", false),
        idDelete("id_delete", "idDelete", "INTEGER", false),
        remark("remark", "remark", "VARCHAR", false);

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        private static final String BEGINNING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        private static final String ENDING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        private final String column;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        private final boolean isColumnNameDelimited;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        private final String javaProperty;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        private final String jdbcType;

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        public String value() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        public String getValue() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        public String getJavaProperty() {
            return this.javaProperty;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        public String getJdbcType() {
            return this.jdbcType;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
            this.column = column;
            this.javaProperty = javaProperty;
            this.jdbcType = jdbcType;
            this.isColumnNameDelimited = isColumnNameDelimited;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        public String asc() {
            return this.getEscapedColumnName() + " ASC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        public static Column[] excludes(Column ... excludes) {
            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
            if (excludes != null && excludes.length > 0) {
                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
            }
            return columns.toArray(new Column[]{});
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        public static Column[] all() {
            return Column.values();
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        public String getEscapedColumnName() {
            if (this.isColumnNameDelimited) {
                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
            } else {
                return this.column;
            }
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_notice
         *
         * @mbg.generated
         */
        public String getAliasedEscapedColumnName() {
            return this.getEscapedColumnName();
        }
    }
}