package com.mercury.chat.user.entity;

import java.io.Serializable;
import java.util.Date;

public class Message implements Serializable {
    private Long id;

    private String chatFrom;

    private String chatTo;

    private Date createTs;

    private String message;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getChatFrom() {
        return chatFrom;
    }

    public void setChatFrom(String chatFrom) {
        this.chatFrom = chatFrom;
    }

    public String getChatTo() {
        return chatTo;
    }

    public void setChatTo(String chatTo) {
        this.chatTo = chatTo;
    }

    public Date getCreateTs() {
        return createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Message other = (Message) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getChatFrom() == null ? other.getChatFrom() == null : this.getChatFrom().equals(other.getChatFrom()))
            && (this.getChatTo() == null ? other.getChatTo() == null : this.getChatTo().equals(other.getChatTo()))
            && (this.getCreateTs() == null ? other.getCreateTs() == null : this.getCreateTs().equals(other.getCreateTs()))
            && (this.getMessage() == null ? other.getMessage() == null : this.getMessage().equals(other.getMessage()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getChatFrom() == null) ? 0 : getChatFrom().hashCode());
        result = prime * result + ((getChatTo() == null) ? 0 : getChatTo().hashCode());
        result = prime * result + ((getCreateTs() == null) ? 0 : getCreateTs().hashCode());
        result = prime * result + ((getMessage() == null) ? 0 : getMessage().hashCode());
        return result;
    }
}
@@ -138,20 +138,91 @@
 able %7B%0D%0A
-    
+%0D%0A%09private static final long serialVersionUID = -4210188452972019812L;%0D%0A%0D%0A%09
 private 
@@ -360,64 +360,8 @@
 %0D%0A%0D%0A
-    private static final long serialVersionUID = 1L;%0D%0A%0D%0A
     

change the serialVersionUID