content: package com.alibaba.cobar.client.entities;
  
  import java.util.Date;
  
  public class Offer {
      private Long   id;
      private Long memberId;
      private String subject;
      private Date   gmtUpdated = new Date();
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public Long getMemberId() {
          return memberId;
      }
  
      public void setMemberId(Long memberId) {
          this.memberId = memberId;
      }
  
      public String getSubject() {
          return subject;
      }
  
      public void setSubject(String subject) {
          this.subject = subject;
      }
  
      public Date getGmtUpdated() {
          return gmtUpdated;
      }
  
      public void setGmtUpdated(Date gmtUpdated) {
          this.gmtUpdated = gmtUpdated;
      }
  
      @Override
      public int hashCode() {
          final int prime = 31;
          int result = 1;
          result = prime * result + ((gmtUpdated == null) ? 0 : gmtUpdated.hashCode());
          result = prime * result + ((id == null) ? 0 : id.hashCode());
          result = prime * result + ((memberId == null) ? 0 : memberId.hashCode());
          result = prime * result + ((subject == null) ? 0 : subject.hashCode());
          return result;
      }
  
      @Override
      public boolean equals(Object obj) {
          if (this == obj)
              return true;
          if (obj == null)
              return false;
          if (getClass() != obj.getClass())
              return false;
          Offer other = (Offer) obj;
          if (gmtUpdated == null) {
              if (other.gmtUpdated != null)
                  return false;
          } else if (!gmtUpdated.equals(other.gmtUpdated))
              return false;
          if (id == null) {
              if (other.id != null)
                  return false;
          } else if (!id.equals(other.id))
              return false;
          if (memberId == null) {
              if (other.memberId != null)
                  return false;
          } else if (!memberId.equals(other.memberId))
              return false;
          if (subject == null) {
              if (other.subject != null)
                  return false;
          } else if (!subject.equals(other.subject))
              return false;
          return true;
      }
  
      @Override
      public String toString() {
          return "Offer [gmtUpdated=" + gmtUpdated + ", id=" + id + ", memberId=" + memberId
                  + ", subject=" + subject + "]";
      }
  
  }
  