package com.ps.visualization.vo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Embeddable;


/**
 * PortsinfoId entity. @author MyEclipse Persistence Tools
 */
@Embeddable

public class PortsinfoId  implements java.io.Serializable {


    // Fields    

     private Integer idIp;
     private Integer port;
     private String types;
     private String banner;
     private Integer isIcs;
     private String service;
     private Timestamp buildDate;


    // Constructors

    /** default constructor */
    public PortsinfoId() {
    }

    
    /** full constructor */
    public PortsinfoId(Integer idIp, Integer port, String types, String banner, Integer isIcs, String service, Timestamp buildDate) {
        this.idIp = idIp;
        this.port = port;
        this.types = types;
        this.banner = banner;
        this.isIcs = isIcs;
        this.service = service;
        this.buildDate = buildDate;
    }

   
    // Property accessors

    @Column(name="id_ip", nullable=false)

    public Integer getIdIp() {
        return this.idIp;
    }
    
    public void setIdIp(Integer idIp) {
        this.idIp = idIp;
    }

    @Column(name="port", nullable=false)

    public Integer getPort() {
        return this.port;
    }
    
    public void setPort(Integer port) {
        this.port = port;
    }

    @Column(name="types", nullable=false, length=4)

    public String getTypes() {
        return this.types;
    }
    
    public void setTypes(String types) {
        this.types = types;
    }

    @Column(name="banner", nullable=false, length=16777215)

    public String getBanner() {
        return this.banner;
    }
    
    public void setBanner(String banner) {
        this.banner = banner;
    }

    @Column(name="is_ics", nullable=false)

    public Integer getIsIcs() {
        return this.isIcs;
    }
    
    public void setIsIcs(Integer isIcs) {
        this.isIcs = isIcs;
    }

    @Column(name="service", nullable=false, length=30)

    public String getService() {
        return this.service;
    }
    
    public void setService(String service) {
        this.service = service;
    }

    @Column(name="build_date", nullable=false, length=19)

    public Timestamp getBuildDate() {
        return this.buildDate;
    }
    
    public void setBuildDate(Timestamp buildDate) {
        this.buildDate = buildDate;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof PortsinfoId) ) return false;
		 PortsinfoId castOther = ( PortsinfoId ) other; 
         
		 return ( (this.getIdIp()==castOther.getIdIp()) || ( this.getIdIp()!=null && castOther.getIdIp()!=null && this.getIdIp().equals(castOther.getIdIp()) ) )
 && ( (this.getPort()==castOther.getPort()) || ( this.getPort()!=null && castOther.getPort()!=null && this.getPort().equals(castOther.getPort()) ) )
 && ( (this.getTypes()==castOther.getTypes()) || ( this.getTypes()!=null && castOther.getTypes()!=null && this.getTypes().equals(castOther.getTypes()) ) )
 && ( (this.getBanner()==castOther.getBanner()) || ( this.getBanner()!=null && castOther.getBanner()!=null && this.getBanner().equals(castOther.getBanner()) ) )
 && ( (this.getIsIcs()==castOther.getIsIcs()) || ( this.getIsIcs()!=null && castOther.getIsIcs()!=null && this.getIsIcs().equals(castOther.getIsIcs()) ) )
 && ( (this.getService()==castOther.getService()) || ( this.getService()!=null && castOther.getService()!=null && this.getService().equals(castOther.getService()) ) )
 && ( (this.getBuildDate()==castOther.getBuildDate()) || ( this.getBuildDate()!=null && castOther.getBuildDate()!=null && this.getBuildDate().equals(castOther.getBuildDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getIdIp() == null ? 0 : this.getIdIp().hashCode() );
         result = 37 * result + ( getPort() == null ? 0 : this.getPort().hashCode() );
         result = 37 * result + ( getTypes() == null ? 0 : this.getTypes().hashCode() );
         result = 37 * result + ( getBanner() == null ? 0 : this.getBanner().hashCode() );
         result = 37 * result + ( getIsIcs() == null ? 0 : this.getIsIcs().hashCode() );
         result = 37 * result + ( getService() == null ? 0 : this.getService().hashCode() );
         result = 37 * result + ( getBuildDate() == null ? 0 : this.getBuildDate().hashCode() );
         return result;
   }   





}