package org.linlinjava.jz.db.domain;

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

public class JzTicketAction {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_ticket_action.id
     *
     * @mbg.generated
     */
    private Integer id;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_ticket_action.status
     *
     * @mbg.generated
     */
    private Short status;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_ticket_action.status_sub
     *
     * @mbg.generated
     */
    private Short statusSub;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_ticket_action.hm_type
     *
     * @mbg.generated
     */
    private Short hmType;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_ticket_action.create_user
     *
     * @mbg.generated
     */
    private Integer createUser;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_ticket_action.ticket_id
     *
     * @return the value of jz_ticket_action.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 jz_ticket_action.ticket_id
     *
     * @param ticketId the value for jz_ticket_action.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 jz_ticket_action.status
     *
     * @return the value of jz_ticket_action.status
     *
     * @mbg.generated
     */
    public Short getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_ticket_action.status
     *
     * @param status the value for jz_ticket_action.status
     *
     * @mbg.generated
     */
    public void setStatus(Short status) {
        this.status = status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_ticket_action.status_sub
     *
     * @return the value of jz_ticket_action.status_sub
     *
     * @mbg.generated
     */
    public Short getStatusSub() {
        return statusSub;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_ticket_action.status_sub
     *
     * @param statusSub the value for jz_ticket_action.status_sub
     *
     * @mbg.generated
     */
    public void setStatusSub(Short statusSub) {
        this.statusSub = statusSub;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_ticket_action.status_des
     *
     * @return the value of jz_ticket_action.status_des
     *
     * @mbg.generated
     */
    public String getStatusDes() {
        return statusDes;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_ticket_action.hm_type
     *
     * @return the value of jz_ticket_action.hm_type
     *
     * @mbg.generated
     */
    public Short getHmType() {
        return hmType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_ticket_action.hm_type
     *
     * @param hmType the value for jz_ticket_action.hm_type
     *
     * @mbg.generated
     */
    public void setHmType(Short hmType) {
        this.hmType = hmType;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_ticket_action.content
     *
     * @param content the value for jz_ticket_action.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 jz_ticket_action.create_time
     *
     * @return the value of jz_ticket_action.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 jz_ticket_action.create_time
     *
     * @param createTime the value for jz_ticket_action.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 jz_ticket_action.create_user
     *
     * @return the value of jz_ticket_action.create_user
     *
     * @mbg.generated
     */
    public Integer getCreateUser() {
        return createUser;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_ticket_action.create_user
     *
     * @param createUser the value for jz_ticket_action.create_user
     *
     * @mbg.generated
     */
    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_ticket_action
     *
     * @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(", ticketId=").append(ticketId);
        sb.append(", status=").append(status);
        sb.append(", statusSub=").append(statusSub);
        sb.append(", statusDes=").append(statusDes);
        sb.append(", hmType=").append(hmType);
        sb.append(", content=").append(content);
        sb.append(", createTime=").append(createTime);
        sb.append(", createUser=").append(createUser);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_ticket_action
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JzTicketAction other = (JzTicketAction) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTicketId() == null ? other.getTicketId() == null : this.getTicketId().equals(other.getTicketId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getStatusSub() == null ? other.getStatusSub() == null : this.getStatusSub().equals(other.getStatusSub()))
            && (this.getStatusDes() == null ? other.getStatusDes() == null : this.getStatusDes().equals(other.getStatusDes()))
            && (this.getHmType() == null ? other.getHmType() == null : this.getHmType().equals(other.getHmType()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_ticket_action
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTicketId() == null) ? 0 : getTicketId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getStatusSub() == null) ? 0 : getStatusSub().hashCode());
        result = prime * result + ((getStatusDes() == null) ? 0 : getStatusDes().hashCode());
        result = prime * result + ((getHmType() == null) ? 0 : getHmType().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table jz_ticket_action
     *
     * @mbg.generated
     */
    public enum Column {
        id("id", "id", "INTEGER", false),
        ticketId("ticket_id", "ticketId", "INTEGER", false),
        status("status", "status", "SMALLINT", true),
        statusSub("status_sub", "statusSub", "SMALLINT", false),
        statusDes("status_des", "statusDes", "VARCHAR", false),
        hmType("hm_type", "hmType", "SMALLINT", false),
        content("content", "content", "VARCHAR", false),
        createTime("create_time", "createTime", "TIMESTAMP", false),
        createUser("create_user", "createUser", "INTEGER", false);

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

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

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

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

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

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

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

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

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

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

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_ticket_action
         *
         * @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 jz_ticket_action
         *
         * @mbg.generated
         */
        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

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

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_ticket_action
         *
         * @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 jz_ticket_action
         *
         * @mbg.generated
         */
        public static Column[] all() {
            return Column.values();
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_ticket_action
         *
         * @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 jz_ticket_action
         *
         * @mbg.generated
         */
        public String getAliasedEscapedColumnName() {
            return this.getEscapedColumnName();
        }
    }
}