@Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Chat other = (Chat) that;
        return (this.getChatId() == null ? other.getChatId() == null : this.getChatId().equals(other.getChatId()))
            && (this.getChatContent() == null ? other.getChatContent() == null : this.getChatContent().equals(other.getChatContent()))
            && (this.getFromUserId() == null ? other.getFromUserId() == null : this.getFromUserId().equals(other.getFromUserId()))
            && (this.getToType() == null ? other.getToType() == null : this.getToType().equals(other.getToType()))
            && (this.getToTypeId() == null ? other.getToTypeId() == null : this.getToTypeId().equals(other.getToTypeId()))
            && (this.getChatState() == null ? other.getChatState() == null : this.getChatState().equals(other.getChatState()))
            && (this.getChatType() == null ? other.getChatType() == null : this.getChatType().equals(other.getChatType()))
            && (this.getChatCreateTime() == null ? other.getChatCreateTime() == null : this.getChatCreateTime().equals(other.getChatCreateTime()));
    }
This method was generated by MyBatis Generator.
This method corresponds to the database table chat

@mbg.generated
AnyChatServer/src/main/java/org/anychat/model/base/Chat.java