Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.dto.status;
  
  import java.util.List;
  
 
 
 @Table(name = "shardstatus")
 public class ShardStatus extends OriannaDto {
     private static final long serialVersionUID = 7618827332112337640L;
     @Id
     @GeneratedValue(strategy = .)
     private long dbId;
 
     private String hostnamenameregion_tagslug;
 
     @CollectionTable(name = "shardstatus_locale", joinColumns = @JoinColumn(name = "shardstatus_id"))
     private List<Stringlocales;
 
     @OneToMany(cascade = .)
     private List<Serviceservices;
 
     /*
      * (non-Javadoc)
      * @see java.lang.Object#equals(java.lang.Object)
      */
     @Override
     public boolean equals(final Object obj) {
         if(this == obj) {
             return true;
         }
         if(obj == null) {
             return false;
         }
         if(!(obj instanceof ShardStatus)) {
             return false;
         }
         final ShardStatus other = (ShardStatus)obj;
         if( == null) {
             if(other.hostname != null) {
                 return false;
             }
         }
         else if(!.equals(other.hostname)) {
             return false;
         }
         if( == null) {
             if(other.locales != null) {
                 return false;
             }
         }
         else if(!.equals(other.locales)) {
             return false;
         }
         if( == null) {
             if(other.name != null) {
                 return false;
             }
         }
         else if(!.equals(other.name)) {
             return false;
         }
         if( == null) {
             if(other.region_tag != null) {
                 return false;
             }
         }
         else if(!.equals(other.region_tag)) {
             return false;
         }
         if( == null) {
             if(other.services != null) {
                 return false;
             }
         }
         else if(!.equals(other.services)) {
             return false;
         }
         if( == null) {
             if(other.slug != null) {
                 return false;
             }
         }
         else if(!.equals(other.slug)) {
             return false;
         }
         return true;
    }
    @Override
    public String getDataStoreIndexField(final Class<?> keyType) {
        if(keyType.equals(Long.class)) {
            return "dbId";
        }
        return null;
    }

    

Returns:
the hostname
    public String getHostname() {
        return ;
    }

    

Returns:
the locales
    public List<StringgetLocales() {
        return ;
    }

    

Returns:
the name
    public String getName() {
        return ;
    }

    

Returns:
the region_tag
    public String getRegion_tag() {
        return ;
    }

    

Returns:
the services
    public List<ServicegetServices() {
        return ;
    }

    

Returns:
the slug
    public String getSlug() {
        return ;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        return result;
    }

    

Parameters:
hostname the hostname to set
    public void setHostname(final String hostname) {
        this. = hostname;
    }

    

Parameters:
locales the locales to set
    public void setLocales(final List<Stringlocales) {
        this. = locales;
    }

    

Parameters:
name the name to set
    public void setName(final String name) {
        this. = name;
    }

    

Parameters:
region_tag the region_tag to set
    public void setRegion_tag(final String region_tag) {
        this. = region_tag;
    }

    

Parameters:
services the services to set
    public void setServices(final List<Serviceservices) {
        this. = services;
    }

    

Parameters:
slug the slug to set
    public void setSlug(final String slug) {
        this. = slug;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "ShardStatus [hostname=" +  + ", name=" +  + ", region_tag=" +  + ", slug=" +  + ", locales=" + 
                + ", services=" +  + "]";
    }
New to GrepCode? Check out our FAQ X