Class AquabikeDistance

All Implemented Interfaces:
Serializable

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

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

  • swimDistance : the distance, in meters, of the swim leg of the Course.
  • swimLaps : the number of laps that the swim 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.
See Also:
  • Constructor Details

    • AquabikeDistance

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

    • getSwimDistance

      public Integer getSwimDistance()
    • setSwimDistance

      public void setSwimDistance(Integer swimDistance)
    • getSwimLaps

      public Integer getSwimLaps()
    • setSwimLaps

      public void setSwimLaps(Integer swimLaps)
    • getBikeDistance

      public Integer getBikeDistance()
    • setBikeDistance

      public void setBikeDistance(Integer bikeDistance)
    • getBikeLaps

      public Integer getBikeLaps()
    • setBikeLaps

      public void setBikeLaps(Integer bikeLaps)
    • 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