content: package com.cx.bank.mhg.bdemo.domain;
  
  import javax.persistence.GeneratedValue;
  import javax.persistence.Id;
  import javax.persistence.Table;
  import java.io.Serializable;
  
  /**
   * t_log
   * @author 
   */
  @Table(name="t_log")
  public class Log implements Serializable {
      @Id
      @GeneratedValue
      private Integer logId;
  
      private String logType;
  
      private Double logAmount;
  
      private Integer userid;
  
      private static final long serialVersionUID = 1L;
  
      public Integer getLogId() {
          return logId;
      }
  
      public void setLogId(Integer logId) {
          this.logId = logId;
      }
  
      public String getLogType() {
          return logType;
      }
  
      public void setLogType(String logType) {
          this.logType = logType;
      }
  
      public Double getLogAmount() {
          return logAmount;
      }
  
      public void setLogAmount(Double logAmount) {
          this.logAmount = logAmount;
      }
  
      public Integer getUserid() {
          return userid;
      }
  
      public void setUserid(Integer userid) {
          this.userid = userid;
      }
  
      @Override
      public boolean equals(Object that) {
          if (this == that) {
              return true;
          }
          if (that == null) {
              return false;
          }
          if (getClass() != that.getClass()) {
              return false;
          }
          Log other = (Log) that;
          return (this.getLogId() == null ? other.getLogId() == null : this.getLogId().equals(other.getLogId()))
              && (this.getLogType() == null ? other.getLogType() == null : this.getLogType().equals(other.getLogType()))
              && (this.getLogAmount() == null ? other.getLogAmount() == null : this.getLogAmount().equals(other.getLogAmount()))
              && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()));
      }
  
      @Override
      public int hashCode() {
          final int prime = 31;
          int result = 1;
          result = prime * result + ((getLogId() == null) ? 0 : getLogId().hashCode());
          result = prime * result + ((getLogType() == null) ? 0 : getLogType().hashCode());
          result = prime * result + ((getLogAmount() == null) ? 0 : getLogAmount().hashCode());
          result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
          return result;
      }
  
      @Override
      public String toString() {
          StringBuilder sb = new StringBuilder();
          sb.append(getClass().getSimpleName());
          sb.append(" [");
          sb.append("Hash = ").append(hashCode());
          sb.append(", logId=").append(logId);
          sb.append(", logType=").append(logType);
          sb.append(", logAmount=").append(logAmount);
          sb.append(", userid=").append(userid);
          sb.append(", serialVersionUID=").append(serialVersionUID);
          sb.append("]");
          return sb.toString();
      }
  }