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_CORE_PROXY_JAR_INFO"
)
public class ProxyJarFields {
   @Id
   @GeneratedValue(
      strategy = GenerationType.AUTO
   )
   Integer id;
   String gateway_url = "";
   Integer gateway_port = 0;
   String app_url = "";
   Integer app_port = 0;
   String project_id = "";
   String app_project_name = "";

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

   public String getGateway_url() {
      return this.gateway_url;
   }

   public Integer getGateway_port() {
      return this.gateway_port;
   }

   public String getApp_url() {
      return this.app_url;
   }

   public Integer getApp_port() {
      return this.app_port;
   }

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

   public String getApp_project_name() {
      return this.app_project_name;
   }

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

   public void setGateway_url(final String gateway_url) {
      this.gateway_url = gateway_url;
   }

   public void setGateway_port(final Integer gateway_port) {
      this.gateway_port = gateway_port;
   }

   public void setApp_url(final String app_url) {
      this.app_url = app_url;
   }

   public void setApp_port(final Integer app_port) {
      this.app_port = app_port;
   }

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

   public void setApp_project_name(final String app_project_name) {
      this.app_project_name = app_project_name;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof ProxyJarFields)) {
         return false;
      } else {
         ProxyJarFields other = (ProxyJarFields)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$gateway_url = this.getGateway_url();
            Object other$gateway_url = other.getGateway_url();
            if (this$gateway_url == null) {
               if (other$gateway_url != null) {
                  return false;
               }
            } else if (!this$gateway_url.equals(other$gateway_url)) {
               return false;
            }

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

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

            Object this$app_port = this.getApp_port();
            Object other$app_port = other.getApp_port();
            if (this$app_port == null) {
               if (other$app_port != null) {
                  return false;
               }
            } else if (!this$app_port.equals(other$app_port)) {
               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;
            }

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

            return true;
         }
      }
   }

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

   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $id = this.getId();
      result = result * 59 + ($id == null ? 43 : $id.hashCode());
      Object $gateway_url = this.getGateway_url();
      result = result * 59 + ($gateway_url == null ? 43 : $gateway_url.hashCode());
      Object $gateway_port = this.getGateway_port();
      result = result * 59 + ($gateway_port == null ? 43 : $gateway_port.hashCode());
      Object $app_url = this.getApp_url();
      result = result * 59 + ($app_url == null ? 43 : $app_url.hashCode());
      Object $app_port = this.getApp_port();
      result = result * 59 + ($app_port == null ? 43 : $app_port.hashCode());
      Object $project_id = this.getProject_id();
      result = result * 59 + ($project_id == null ? 43 : $project_id.hashCode());
      Object $app_project_name = this.getApp_project_name();
      result = result * 59 + ($app_project_name == null ? 43 : $app_project_name.hashCode());
      return result;
   }

   public String toString() {
      return "ProxyJarFields(id=" + this.getId() + ", gateway_url=" + this.getGateway_url() + ", gateway_port=" + this.getGateway_port() + ", app_url=" + this.getApp_url() + ", app_port=" + this.getApp_port() + ", project_id=" + this.getProject_id() + ", app_project_name=" + this.getApp_project_name() + ")";
   }
}
