Class DuathlonDistance

All Implemented Interfaces:
Serializable

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

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

  • firstRundDistance : the distance, in meters, of the first run leg of the Course.
  • firstRunLaps : the number of laps that the first run distance is divided into.
  • bikeDistance : the distance, in meters, of the bike leg of the Course.
  • bikeLaps : the number of laps that the bike distance is divided into.
  • secondRunDistance - the distance, in meters, of the second run leg of the Course.
  • runLaps : the number of laps that the second run distance is divided into.
See Also:
  • Constructor Details

    • DuathlonDistance

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

    • getFirstRunDistance

      public Integer getFirstRunDistance()
    • setFirstRunDistance

      public void setFirstRunDistance(Integer firstRunDistance)
    • getFirstRunLaps

      public Integer getFirstRunLaps()
    • setFirstRunLaps

      public void setFirstRunLaps(Integer firstRunLaps)
    • getBikeDistance

      public Integer getBikeDistance()
    • setBikeDistance

      public void setBikeDistance(Integer bikeDistance)
    • getBikeLaps

      public Integer getBikeLaps()
    • setBikeLaps

      public void setBikeLaps(Integer bikeLaps)
    • getSecondRunDistance

      public Integer getSecondRunDistance()
    • setSecondRunDistance

      public void setSecondRunDistance(Integer secondRunDistance)
    • getSecondRunLaps

      public Integer getSecondRunLaps()
    • setSecondRunLaps

      public void setSecondRunLaps(Integer secondRunLaps)
    • 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