package com.chenyang.nse.bussiness.entity.orm.table.core;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(
   name = "T_ENCRYPTION_PROXY_HOST"
)
public class TEncryptionProxyHost {
   @Id
   @GeneratedValue(
      strategy = GenerationType.AUTO
   )
   Integer id;
   String host_url;
   String project_id;

   public Integer getId() {
      return this.id;
   }

   public String getHost_url() {
      return this.host_url;
   }

   public String getProject_id() {
      return this.project_id;
   }

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

   public void setHost_url(final String host_url) {
      this.host_url = host_url;
   }

   public void setProject_id(final String project_id) {
      this.project_id = project_id;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof TEncryptionProxyHost)) {
         return false;
      } else {
         TEncryptionProxyHost other = (TEncryptionProxyHost)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$id = this.getId();
            Object other$id = other.getId();
            if (this$id == null) {
               if (other$id != null) {
                  return false;
               }
            } else if (!this$id.equals(other$id)) {
               return false;
            }

            Object this$host_url = this.getHost_url();
            Object other$host_url = other.getHost_url();
            if (this$host_url == null) {
               if (other$host_url != null) {
                  return false;
               }
            } else if (!this$host_url.equals(other$host_url)) {
               return false;
            }

            Object this$project_id = this.getProject_id();
            Object other$project_id = other.getProject_id();
            if (this$project_id == null) {
               if (other$project_id != null) {
                  return false;
               }
            } else if (!this$project_id.equals(other$project_id)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof TEncryptionProxyHost;
   }

   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $id = this.getId();
      result = result * 59 + ($id == null ? 43 : $id.hashCode());
      Object $host_url = this.getHost_url();
      result = result * 59 + ($host_url == null ? 43 : $host_url.hashCode());
      Object $project_id = this.getProject_id();
      result = result * 59 + ($project_id == null ? 43 : $project_id.hashCode());
      return result;
   }

   public String toString() {
      return "TEncryptionProxyHost(id=" + this.getId() + ", host_url=" + this.getHost_url() + ", project_id=" + this.getProject_id() + ")";
   }
}
