Class Athlete
java.lang.Object
fr.utc.miage.sporttrack.entity.user.User
fr.utc.miage.sporttrack.entity.user.Athlete
- All Implemented Interfaces:
Serializable
JPA entity representing an athlete user within the SportTrack application.
An athlete extends User with additional profile attributes such as
gender, age, height, weight, practice level, and a personal biography.
Athletes can create activities, participate in challenges, earn badges, and
interact with other athletes through friendships and messages.
- Author:
- SportTrack Team
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAge()Returns the age of this athlete.getBio()Returns the personal biography of this athlete.Returns the gender of this athlete.Returns the height of this athlete.Returns the practice level of this athlete.Returns the weight of this athlete.voidSets the age of this athlete.voidSets the personal biography of this athlete.voidSets the gender of this athlete.voidSets the height of this athlete.voidsetPracticeLevel(PracticeLevel practiceLevel) Sets the practice level of this athlete.voidSets the weight of this athlete.Methods inherited from class fr.utc.miage.sporttrack.entity.user.User
equals, getEmail, getFirstName, getId, getLastName, getPassword, getProfilePhotoUrl, getUsername, hashCode, isBlank, setEmail, setFirstName, setLastName, setPassword, setUsername
-
Constructor Details
-
Athlete
public Athlete()
-
-
Method Details
-
getGender
Returns the gender of this athlete.- Returns:
- the
Gender, ornullif not specified
-
getAge
Returns the age of this athlete.- Returns:
- the age in years, or
nullif not specified
-
getHeight
Returns the height of this athlete.- Returns:
- the height in centimetres, or
nullif not specified
-
getWeight
Returns the weight of this athlete.- Returns:
- the weight in kilograms, or
nullif not specified
-
getPracticeLevel
Returns the practice level of this athlete.- Returns:
- the
PracticeLevel, ornullif not specified
-
getBio
Returns the personal biography of this athlete.- Returns:
- the bio text, or
nullif not provided
-
setGender
Sets the gender of this athlete.- Parameters:
gender- theGenderto assign
-
setAge
Sets the age of this athlete.- Parameters:
age- the age in years to assign
-
setHeight
Sets the height of this athlete.- Parameters:
height- the height in centimetres to assign
-
setWeight
Sets the weight of this athlete.- Parameters:
weight- the weight in kilograms to assign
-
setPracticeLevel
Sets the practice level of this athlete.- Parameters:
practiceLevel- thePracticeLevelto assign
-
setBio
Sets the personal biography of this athlete.- Parameters:
bio- the biography text to assign
-