Class BiathlonDistance

All Implemented Interfaces:
Serializable

@Entity(name="BiathlonDistance") public class BiathlonDistance extends Distance implements Serializable
The BiathlonDistance entity extends the Distance entity and represents the data of a Biathlon Course's Distance.

Besides the fields inherited from Distance, the BiathlonDistance's fields are defined as follows:

  • bikeDistance : the distance, in meters, of the bike leg of the Course.
  • bikeLaps : the number of laps that the bike distance is divided into.
  • runDistance : the distance, in meters, of the run leg of the Course.
  • runLaps : the number of laps that the run distance is divided into.
See Also:
  • Constructor Details

    • BiathlonDistance

      public BiathlonDistance()
      Default constructor for the BiathlonDistance entity.
  • Method Details

    • getBikeDistance

      public Integer getBikeDistance()
    • setBikeDistance

      public void setBikeDistance(Integer bikeDistance)
    • getBikeLaps

      public Integer getBikeLaps()
    • setBikeLaps

      public void setBikeLaps(Integer bikeLaps)
    • getRunDistance

      public Integer getRunDistance()
    • setRunDistance

      public void setRunDistance(Integer runDistance)
    • getRunLaps

      public Integer getRunLaps()
    • setRunLaps

      public void setRunLaps(Integer runLaps)
    • equals

      public boolean equals(Object o)
      Description copied from class: BaseEntity
      Equality 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:
      equals in class Distance
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Distance
    • toString

      public String toString()
      Overrides:
      toString in class Distance