Class TriathlonBasedRace
java.lang.Object
com.endurancetrio.data.common.model.entity.AuditableEntity
com.endurancetrio.data.common.model.entity.BaseEntity<Long>
com.endurancetrio.data.event.model.entity.Race
com.endurancetrio.data.event.model.entity.TriathlonBasedRace
- All Implemented Interfaces:
Serializable
@Entity(name="TriathlonBasedRace")
public class TriathlonBasedRace
extends Race
implements Serializable
The
TriathlonBasedRace class represents a triathlon based Race such as Aquathlon,
Aquabike or Triathlon.
Besides the fields inherited from the Race, the TriathlonBasedRace's fields
are defined as follows:
-
waterTemperature: the official water temperature for theRace. -
wetSuitRule: thewetsuit rulefor theRace(in Celsius).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the entity's identifier.inthashCode()voidsetWaterTemperature(Double waterTemperature) voidsetWetsuitRule(WetsuitRule wetsuitRule) toString()Methods inherited from class com.endurancetrio.data.event.model.entity.Race
addCourse, addParentRace, getAirTemperature, getCourses, getDate, getGenderCategory, getGunTime, getParentRaces, getRaceReference, getRaceStatus, getRaceType, getResultsFiles, getSubtitle, getTime, getTitle, removeCourse, removeParentRace, setAirTemperature, setCourses, setDate, setGenderCategory, setGunTime, setParentRaces, setRaceReference, setRaceStatus, setRaceType, setResultsFiles, setSubtitle, setTime, setTitleMethods 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
-
TriathlonBasedRace
public TriathlonBasedRace()Default constructor for theTriathlonBasedRaceentity.
-
-
Method Details
-
getWaterTemperature
-
setWaterTemperature
-
getWetsuitRule
-
setWetsuitRule
-
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.
-
hashCode
public int hashCode() -
toString
-