Class TriathlonBasedRace

All Implemented Interfaces:
Serializable

@Entity(name="TriathlonBasedRace") public class TriathlonBasedRace extends Race implements Serializable
The TriathlonBasedRace class represents a triathlon based Race such as Aquathlon, Aquabike or Triathlon.

Besides the fields inherited from the Race, the TriathlonBasedRace's fields are defined as follows:

See Also:
  • Constructor Details

    • TriathlonBasedRace

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

    • getWaterTemperature

      public Double getWaterTemperature()
    • setWaterTemperature

      public void setWaterTemperature(Double waterTemperature)
    • getWetsuitRule

      public WetsuitRule getWetsuitRule()
    • setWetsuitRule

      public void setWetsuitRule(WetsuitRule wetsuitRule)
    • 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 Race
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Race