Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.dto.game;
  
  
 
 @Entity(name = "game.Player")
 @Table(name = "gameplayer")
 public class Player extends OriannaDto {
     private static final long serialVersionUID = -2777208323484807265L;
     private Integer championIdteamId;
     @Id
     @GeneratedValue(strategy = .)
     private long dbId;
 
     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 Player)) {
             return false;
         }
         final Player other = (Player)obj;
         if( == null) {
             if(other.championId != null) {
                 return false;
             }
         }
         else if(!.equals(other.championId)) {
             return false;
         }
         if( == null) {
             if(other.summonerId != null) {
                 return false;
             }
         }
         else if(!.equals(other.summonerId)) {
             return false;
         }
         if( == null) {
             if(other.teamId != null) {
                 return false;
             }
         }
         else if(!.equals(other.teamId)) {
             return false;
         }
         return true;
     }

    

Returns:
the championId
 
     public Integer getChampionId() {
         return ;
     }
 
     @Override
     public String getDataStoreIndexField(final Class<?> keyType) {
         if(keyType.equals(Long.class)) {
             return "dbId";
         }
         return null;
     }

    

Returns:
the summonerId
 
     public Long getSummonerId() {
         return ;
     }

    

Returns:
the teamId
 
     public Integer getTeamId() {
         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());
        return result;
    }

    

Parameters:
championId the championId to set
    public void setChampionId(final Integer championId) {
        this. = championId;
    }

    

Parameters:
summonerId the summonerId to set
    public void setSummonerId(final Long summonerId) {
        this. = summonerId;
    }

    

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