Class IndividualResult

All Implemented Interfaces:
Serializable

@Entity(name="IndividualResult") public class IndividualResult extends BaseEntity<Long>
The IndividualResult entity represents a single athlete's result in a Race.

Common fields include race reference, the athlete's rank, and the sourceResult for derived race linking. Performance data is stored as split times for each discipline segment.

The IndividualResult's fields are defined as follows:

  • id : the unique identifier of the IndividualResult that is automatically generated and is the primary key.
  • race : the Race that this result belongs to.
  • rank : the athlete's finishing position in this Race.
  • sourceResult : the parent IndividualResult that this result is derived from, if any. Performance data should be read from this source for derived race results.
  • penalty : the Penalty applied to the athlete in this Race (e.g., DNF, DSQ, DNS).
  • athlete : the Athlete this result belongs to.
  • team : the Team this result belongs to, if applicable.
  • teamName : the display name of the Team as it appears in this specific Race. May differ from the team's canonical name.
  • ageGroup : the AgeGroup of the athlete for this specific Race.
  • paraClass : the paratriathlon sport ParaClass of the athlete for this specific Race.
  • bib : the athlete's race bib number.
  • swim : the swim split time.
  • firstBike : the first bike split time (for double-biathlon based disciplines).
  • firstRun : the first run split time (for duathlon and double-biathlon based disciplines).
  • t1 : the first transition time.
  • bike : the bike split time.
  • t2 : the second transition time.
  • run : the run split time.
  • secondRun : the second run split time (for duathlon and double-biathlon based disciplines).
  • t3 : the third transition time (for double-biathlon based disciplines).
  • secondBike : the second bike split time (for double-biathlon based disciplines).
  • total : the total race time.
  • points : the points earned by the athlete in this Race.
See Also:
  • Constructor Details

    • IndividualResult

      public IndividualResult()
  • Method Details

    • getRace

      public Race getRace()
    • setRace

      public void setRace(Race race)
    • getRank

      public Integer getRank()
    • setRank

      public void setRank(Integer rank)
    • getSourceResult

      public IndividualResult getSourceResult()
    • setSourceResult

      public void setSourceResult(IndividualResult sourceResult)
    • getPenalty

      public Penalty getPenalty()
    • setPenalty

      public void setPenalty(Penalty penalty)
    • getAthlete

      public Athlete getAthlete()
    • setAthlete

      public void setAthlete(Athlete athlete)
    • getTeam

      public Team getTeam()
    • setTeam

      public void setTeam(Team team)
    • getTeamName

      public String getTeamName()
    • setTeamName

      public void setTeamName(String teamName)
    • getAgeGroup

      public AgeGroup getAgeGroup()
    • setAgeGroup

      public void setAgeGroup(AgeGroup ageGroup)
    • getParaClass

      public ParaClass getParaClass()
    • setParaClass

      public void setParaClass(ParaClass paraClass)
    • getBib

      public String getBib()
    • setBib

      public void setBib(String bib)
    • getSwim

      public Duration getSwim()
    • setSwim

      public void setSwim(Duration swim)
    • getFirstBike

      public Duration getFirstBike()
    • setFirstBike

      public void setFirstBike(Duration firstBike)
    • getFirstRun

      public Duration getFirstRun()
    • setFirstRun

      public void setFirstRun(Duration firstRun)
    • getT1

      public Duration getT1()
    • setT1

      public void setT1(Duration t1)
    • getBike

      public Duration getBike()
    • setBike

      public void setBike(Duration bike)
    • getT2

      public Duration getT2()
    • setT2

      public void setT2(Duration t2)
    • getRun

      public Duration getRun()
    • setRun

      public void setRun(Duration run)
    • getSecondRun

      public Duration getSecondRun()
    • setSecondRun

      public void setSecondRun(Duration secondRun)
    • getT3

      public Duration getT3()
    • setT3

      public void setT3(Duration t3)
    • getSecondBike

      public Duration getSecondBike()
    • setSecondBike

      public void setSecondBike(Duration secondBike)
    • getTotal

      public Duration getTotal()
    • setTotal

      public void setTotal(Duration total)
    • getPoints

      public Integer getPoints()
    • setPoints

      public void setPoints(Integer points)
    • equals

      public boolean equals(Object o)
      Description copied from class: BaseEntity
      Equality is based on the entity's identifier. Two entities are considered equal if they are of the same class and have the same non-null identifier.

      If the ID is null, we treat it as a transient (new) object. Transient objects are only equal if they are the exact same instance.

      Overrides:
      equals in class BaseEntity<Long>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseEntity<Long>
    • toString

      public String toString()
      Overrides:
      toString in class Object