Beispiel #1
0
 /**
  * Creates and returns a new {@link org.newinstance.gucoach.entity.PlayerStats} entity.
  *
  * @param player the player the statistics record belongs to
  * @return a new entity
  */
 protected PlayerStats createPlayerStats(final Player player) {
   final PlayerStats playerStats = new PlayerStats();
   playerStats.setAge(23);
   playerStats.setAssignments(33);
   playerStats.setAverageStrength(3.4f);
   playerStats.setEndurance(77);
   playerStats.setEnergy(88);
   playerStats.setExperience(100);
   playerStats.setForm(90);
   playerStats.setGoalsSeason(4);
   playerStats.setGoalsTotal(10);
   playerStats.setMarketValue(null);
   playerStats.setNumber(11);
   playerStats.setPlayer(player);
   playerStats.setPosition(Position.DEF);
   playerStats.setRedCardsSeason(0);
   playerStats.setRedCardsTotal(1);
   playerStats.setSalary(4300);
   playerStats.setSkillGoalkeeping(3);
   playerStats.setSkillPassing(19);
   playerStats.setSkillPlaymaking(17);
   playerStats.setSkillScoring(12);
   playerStats.setSkillTackling(37);
   playerStats.setTalent(null);
   playerStats.setTalentLevel(0);
   playerStats.setTraining(null);
   playerStats.setYellowCardsSeason(2);
   playerStats.setYellowCardsTotal(7);
   playerStats.setImportDate(new Date());
   return playerStats;
 }