All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AquabikeDistance, AquathlonDistance, BiathlonDistance, DoubleBiathlonDistance, DuathlonDistance, SingleSportDistance, TriathlonDistance

@Entity(name="Distance") public class Distance extends BaseEntity<Long>
The Distance entity represents the data of a Course's Distance.

The Distance's fields are defined as follows:

See Also:
  • Constructor Details

    • Distance

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

    • getDistanceType

      public DistanceType getDistanceType()
    • setDistanceType

      public void setDistanceType(DistanceType distanceType)
    • 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 BaseEntity<Long>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseEntity<Long>
    • toString

      public String toString()
      Overrides:
      toString in class Object