Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.dto.match;
  
  import java.util.List;
  
 
 
 @Entity(name = "match.Team")
 @Table(name = "matchteam")
 public class Team extends OriannaDto {
     private static final long serialVersionUID = 9126311625219194559L;
     @OneToMany(cascade = .)
     private List<BannedChampionbans;
     @Id
     @GeneratedValue(strategy = .)
     private long dbId;
 
     private Long dominionVictoryScore;
 
 
     /*
      * (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 Team)) {
             return false;
         }
         final Team other = (Team)obj;
         if( == null) {
             if(other.bans != null) {
                 return false;
             }
         }
         else if(!.equals(other.bans)) {
             return false;
         }
         if( == null) {
             if(other.baronKills != null) {
                 return false;
             }
         }
         else if(!.equals(other.baronKills)) {
             return false;
         }
         if( == null) {
             if(other.dominionVictoryScore != null) {
                 return false;
             }
         }
         else if(!.equals(other.dominionVictoryScore)) {
             return false;
         }
         if( == null) {
             if(other.dragonKills != null) {
                 return false;
             }
         }
         else if(!.equals(other.dragonKills)) {
             return false;
         }
         if( == null) {
             if(other.firstBaron != null) {
                 return false;
             }
         }
         else if(!.equals(other.firstBaron)) {
             return false;
         }
         if( == null) {
             if(other.firstBlood != null) {
                 return false;
             }
         }
         else if(!.equals(other.firstBlood)) {
             return false;
         }
         if( == null) {
             if(other.firstDragon != null) {
                 return false;
             }
         }
         else if(!.equals(other.firstDragon)) {
            return false;
        }
        if( == null) {
            if(other.firstInhibitor != null) {
                return false;
            }
        }
        else if(!.equals(other.firstInhibitor)) {
            return false;
        }
        if( == null) {
            if(other.firstTower != null) {
                return false;
            }
        }
        else if(!.equals(other.firstTower)) {
            return false;
        }
        if( == null) {
            if(other.inhibitorKills != null) {
                return false;
            }
        }
        else if(!.equals(other.inhibitorKills)) {
            return false;
        }
        if( == null) {
            if(other.teamId != null) {
                return false;
            }
        }
        else if(!.equals(other.teamId)) {
            return false;
        }
        if( == null) {
            if(other.towerKills != null) {
                return false;
            }
        }
        else if(!.equals(other.towerKills)) {
            return false;
        }
        if( == null) {
            if(other.vilemawKills != null) {
                return false;
            }
        }
        else if(!.equals(other.vilemawKills)) {
            return false;
        }
        if( == null) {
            if(other.winner != null) {
                return false;
            }
        }
        else if(!.equals(other.winner)) {
            return false;
        }
        return true;
    }

    

Returns:
the bans
    public List<BannedChampiongetBans() {
        return ;
    }

    

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

    

Returns:
the dominionVictoryScore
    public Long getDominionVictoryScore() {
        return ;
    }

    

Returns:
the dragonKills
    public Integer getDragonKills() {
        return ;
    }

    

Returns:
the firstBaron
    public Boolean getFirstBaron() {
        return ;
    }

    

Returns:
the firstBlood
    public Boolean getFirstBlood() {
        return ;
    }

    

Returns:
the firstDragon
    public Boolean getFirstDragon() {
        return ;
    }

    

Returns:
the firstInhibitor
    public Boolean getFirstInhibitor() {
        return ;
    }

    

Returns:
the firstTower
    public Boolean getFirstTower() {
        return ;
    }

    

Returns:
the inhibitorKills
    public Integer getInhibitorKills() {
        return ;
    }

    

Returns:
the teamId
    public Integer getTeamId() {
        return ;
    }

    

Returns:
the towerKills
    public Integer getTowerKills() {
        return ;
    }

    

Returns:
the vilemawKills
    public Integer getVilemawKills() {
        return ;
    }

    

Returns:
the winner
    public Boolean getWinner() {
        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());
        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());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        return result;
    }

    

Parameters:
bans the bans to set
    public void setBans(final List<BannedChampionbans) {
        this. = bans;
    }

    

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

    

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

    

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

    

Parameters:
firstBaron the firstBaron to set
    public void setFirstBaron(final Boolean firstBaron) {
        this. = firstBaron;
    }

    

Parameters:
firstBlood the firstBlood to set
    public void setFirstBlood(final Boolean firstBlood) {
        this. = firstBlood;
    }

    

Parameters:
firstDragon the firstDragon to set
    public void setFirstDragon(final Boolean firstDragon) {
        this. = firstDragon;
    }

    

Parameters:
firstInhibitor the firstInhibitor to set
    public void setFirstInhibitor(final Boolean firstInhibitor) {
        this. = firstInhibitor;
    }

    

Parameters:
firstTower the firstTower to set
    public void setFirstTower(final Boolean firstTower) {
        this. = firstTower;
    }

    

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

    

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

    

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

    

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

    

Parameters:
winner the winner to set
    public void setWinner(final Boolean winner) {
        this. = winner;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "Team [bans=" +  + ", baronKills=" +  + ", dragonKills=" +  + ", inhibitorKills=" +  + ", teamId="
                +  + ", towerKills=" +  + ", vilemawKills=" +  + ", dominionVictoryScore=" +  + ", firstBaron="
                +  + ", firstBlood=" +  + ", firstDragon=" +  + ", firstInhibitor=" +  + ", firstTower="
                +  + ", winner=" +  + "]";
    }
New to GrepCode? Check out our FAQ X