content: package com.allen.moments.v2.model;
  
  import org.junit.Test;
  
  import java.util.Arrays;
  import java.util.List;
  
  public class Comment {
  
      private Integer commentId;
  
      private Integer postid;
  
      private String comment;
  
      private Integer commentedby;
  
      public Integer getCommentId() {
          return commentId;
      }
  
      public void setCommentId(Integer commentId) {
          this.commentId = commentId;
      }
  
      public Integer getPostid() {
          return postid;
      }
  
      public void setPostid(Integer postid) {
          this.postid = postid;
      }
  
      public String getComment() {
          return comment;
      }
  
      public void setComment(String comment) {
          this.comment = comment == null ? null : comment.trim();
      }
  
      public Integer getCommentedby() {
          return commentedby;
      }
  
      public void setCommentedby(Integer commentedby) {
          this.commentedby = commentedby;
      }
  
      @Override
      public boolean equals(Object that) {
          if (this == that) {
              return true;
          }
          if (that == null) {
              return false;
          }
          if (getClass() != that.getClass()) {
              return false;
          }
          Comment other = (Comment) that;
          return (this.getCommentId() == null ? other.getCommentId() == null : this.getCommentId().equals(other.getCommentId()))
              && (this.getPostid() == null ? other.getPostid() == null : this.getPostid().equals(other.getPostid()))
              && (this.getComment() == null ? other.getComment() == null : this.getComment().equals(other.getComment()))
              && (this.getCommentedby() == null ? other.getCommentedby() == null : this.getCommentedby().equals(other.getCommentedby()));
      }
  
      @Override
      public int hashCode() {
          final int prime = 31;
          int result = 1;
          result = prime * result + ((getCommentId() == null) ? 0 : getCommentId().hashCode());
          result = prime * result + ((getPostid() == null) ? 0 : getPostid().hashCode());
          result = prime * result + ((getComment() == null) ? 0 : getComment().hashCode());
          result = prime * result + ((getCommentedby() == null) ? 0 : getCommentedby().hashCode());
          return result;
      }
  }