Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.dto.stats;
  
  import java.util.List;
  
 
 
 @Table(name = "playerstatssummarylist")
 public class PlayerStatsSummaryList extends OriannaDto {
     private static final long serialVersionUID = 31774821362693998L;
 
     @OneToMany(cascade = .)
 
     @Id
     private Long summonerId;
 
     /*
      * (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 PlayerStatsSummaryList)) {
             return false;
         }
         final PlayerStatsSummaryList other = (PlayerStatsSummaryList)obj;
         if( == null) {
             if(other.playerStatSummaries != null) {
                 return false;
             }
         }
         else if(!.equals(other.playerStatSummaries)) {
             return false;
         }
         if( == null) {
             if(other.summonerId != null) {
                 return false;
             }
         }
         else if(!.equals(other.summonerId)) {
             return false;
         }
         return true;
     }
 
     @Override
     public String getDataStoreIndexField(final Class<?> keyType) {
         if(keyType.equals(Long.class)) {
             return "summonerId";
         }
         return null;
     }

    

Returns:
the playerStatSummaries
 
         return ;
     }

    

Returns:
the summonerId
 
     public Long getSummonerId() {
         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());
         return result;
     }

    

Parameters:
playerStatSummaries the playerStatSummaries to set
 
     public void setPlayerStatSummaries(final List<PlayerStatsSummaryplayerStatSummaries) {
         this. = playerStatSummaries;
    }

    

Parameters:
summonerId the summonerId to set
    public void setSummonerId(final Long summonerId) {
        this. = summonerId;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "PlayerStatsSummaryList [playerStatSummaries=" +  + ", summonerId=" +  + "]";
    }
New to GrepCode? Check out our FAQ X