Class Distance
java.lang.Object
com.endurancetrio.data.common.model.entity.AuditableEntity
com.endurancetrio.data.common.model.entity.BaseEntity<Long>
com.endurancetrio.data.event.model.entity.Distance
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AquabikeDistance,AquathlonDistance,BiathlonDistance,DoubleBiathlonDistance,DuathlonDistance,SingleSportDistance,TriathlonDistance
The
Distance entity represents the data of a Course's Distance.
The Distance's fields are defined as follows:
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the entity's identifier.inthashCode()voidsetDistanceType(DistanceType distanceType) toString()Methods inherited from class com.endurancetrio.data.common.model.entity.BaseEntity
getId, setIdMethods inherited from class com.endurancetrio.data.common.model.entity.AuditableEntity
getCreatedAt, getUpdatedAt, getVersion
-
Constructor Details
-
Distance
public Distance()Default constructor for theDistanceentity.
-
-
Method Details
-
getDistanceType
-
setDistanceType
-
equals
Description copied from class:BaseEntityEquality 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:
equalsin classBaseEntity<Long>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseEntity<Long>
-
toString
-