Class IndividualResult
java.lang.Object
com.endurancetrio.data.common.model.entity.AuditableEntity
com.endurancetrio.data.common.model.entity.BaseEntity<Long>
com.endurancetrio.data.event.model.entity.IndividualResult
- All Implemented Interfaces:
Serializable
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 theIndividualResultthat is automatically generated and is the primary key. -
race: theRacethat this result belongs to. -
rank: the athlete's finishing position in thisRace. -
sourceResult: the parentIndividualResultthat this result is derived from, if any. Performance data should be read from this source for derived race results. -
penalty: thePenaltyapplied to the athlete in thisRace(e.g., DNF, DSQ, DNS). -
athlete: theAthletethis result belongs to. -
team: theTeamthis result belongs to, if applicable. -
teamName: the display name of theTeamas it appears in this specificRace. May differ from the team's canonical name. -
ageGroup: theAgeGroupof the athlete for this specificRace. -
paraClass: the paratriathlon sportParaClassof the athlete for this specificRace. -
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 thisRace.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the entity's identifier.getBib()getBike()getRace()getRank()getRun()getSwim()getT1()getT2()getT3()getTeam()getTotal()inthashCode()voidsetAgeGroup(AgeGroup ageGroup) voidsetAthlete(Athlete athlete) voidvoidvoidsetFirstBike(Duration firstBike) voidsetFirstRun(Duration firstRun) voidsetParaClass(ParaClass paraClass) voidsetPenalty(Penalty penalty) voidvoidvoidvoidvoidsetSecondBike(Duration secondBike) voidsetSecondRun(Duration secondRun) voidsetSourceResult(IndividualResult sourceResult) voidvoidvoidvoidvoidvoidsetTeamName(String teamName) voidtoString()Methods inherited from class com.endurancetrio.data.common.model.entity.BaseEntity
getId, setIdMethods inherited from class com.endurancetrio.data.common.model.entity.AuditableEntity
getCreatedAt, getUpdatedAt, getVersion
-
Constructor Details
-
IndividualResult
public IndividualResult()
-
-
Method Details
-
getRace
-
setRace
-
getRank
-
setRank
-
getSourceResult
-
setSourceResult
-
getPenalty
-
setPenalty
-
getAthlete
-
setAthlete
-
getTeam
-
setTeam
-
getTeamName
-
setTeamName
-
getAgeGroup
-
setAgeGroup
-
getParaClass
-
setParaClass
-
getBib
-
setBib
-
getSwim
-
setSwim
-
getFirstBike
-
setFirstBike
-
getFirstRun
-
setFirstRun
-
getT1
-
setT1
-
getBike
-
setBike
-
getT2
-
setT2
-
getRun
-
setRun
-
getSecondRun
-
setSecondRun
-
getT3
-
setT3
-
getSecondBike
-
setSecondBike
-
getTotal
-
setTotal
-
getPoints
-
setPoints
-
equals
Description copied from class:BaseEntityEquality 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:
equalsin classBaseEntity<Long>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseEntity<Long>
-
toString
-