Class Athlete
java.lang.Object
com.endurancetrio.data.common.model.entity.AuditableEntity
com.endurancetrio.data.common.model.entity.BaseEntity<Long>
com.endurancetrio.data.competitor.model.entity.Athlete
- All Implemented Interfaces:
Serializable
The
Athlete entity represents an individual competitor in the system.
The Athlete's fields are defined as follows:
-
id: the unique identifier of theAthletethat is automatically generated and is the primary key. -
longName: the athlete's longest available name, which may not be the full name for historical records. -
birthName: the athlete's name at birth, if different from the current name. Used to identify athletes who changed names (e.g., after marriage). -
knownName: the athlete's known or preferred name. -
gender: theAthleteGenderof the athlete. -
country: the athlete'sCountryof representation. -
yearOfBirth: the athlete's year of birth.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the entity's identifier.inthashCode()voidsetBirthName(String birthName) voidsetCountry(Country country) voidsetGender(AthleteGender gender) voidsetKnownName(String knownName) voidsetLongName(String longName) voidsetYearOfBirth(Integer yearOfBirth) toString()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
-
Athlete
public Athlete()
-
-
Method Details
-
getLongName
-
setLongName
-
getBirthName
-
setBirthName
-
getKnownName
-
setKnownName
-
getGender
-
setGender
-
getCountry
-
setCountry
-
getYearOfBirth
-
setYearOfBirth
-
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
-