Class Athlete

java.lang.Object
fr.utc.miage.sporttrack.entity.user.User
fr.utc.miage.sporttrack.entity.user.Athlete
All Implemented Interfaces:
Serializable

@Entity public class Athlete extends User implements 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 Details

    • Athlete

      public Athlete()
  • Method Details

    • getGender

      public Gender getGender()
      Returns the gender of this athlete.
      Returns:
      the Gender, or null if not specified
    • getAge

      public Integer getAge()
      Returns the age of this athlete.
      Returns:
      the age in years, or null if not specified
    • getHeight

      public Double getHeight()
      Returns the height of this athlete.
      Returns:
      the height in centimetres, or null if not specified
    • getWeight

      public Double getWeight()
      Returns the weight of this athlete.
      Returns:
      the weight in kilograms, or null if not specified
    • getPracticeLevel

      public PracticeLevel getPracticeLevel()
      Returns the practice level of this athlete.
      Returns:
      the PracticeLevel, or null if not specified
    • getBio

      public String getBio()
      Returns the personal biography of this athlete.
      Returns:
      the bio text, or null if not provided
    • setGender

      public void setGender(Gender gender)
      Sets the gender of this athlete.
      Parameters:
      gender - the Gender to assign
    • setAge

      public void setAge(Integer age)
      Sets the age of this athlete.
      Parameters:
      age - the age in years to assign
    • setHeight

      public void setHeight(Double height)
      Sets the height of this athlete.
      Parameters:
      height - the height in centimetres to assign
    • setWeight

      public void setWeight(Double weight)
      Sets the weight of this athlete.
      Parameters:
      weight - the weight in kilograms to assign
    • setPracticeLevel

      public void setPracticeLevel(PracticeLevel practiceLevel)
      Sets the practice level of this athlete.
      Parameters:
      practiceLevel - the PracticeLevel to assign
    • setBio

      public void setBio(String bio)
      Sets the personal biography of this athlete.
      Parameters:
      bio - the biography text to assign