Class TriathlonDistance
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
com.endurancetrio.data.event.model.entity.TriathlonDistance
- All Implemented Interfaces:
Serializable
@Entity(name="TriathlonDistance")
public class TriathlonDistance
extends Distance
implements Serializable
The
TriathlonDistance entity extends the Distance entity and represents the data
of a Triathlon and Cross Triathlon
Course's Distance.
Besides the fields inherited from Distance, the TriathlonDistance's
fields are defined as follows:
-
swimDistance: the distance, in meters, of the swim leg of theCourse -
swimLaps: the number of laps that the swim distance is divided into -
bikeDistance: the distance, in meters, of the bike leg of theCourse -
bikeLaps: the number of laps that the bike distance is divided into -
runDistance: the distance, in meters, of the run leg of theCourse -
runLaps: the number of laps that the run distance is divided into
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the entity's identifier.inthashCode()voidsetBikeDistance(Integer bikeDistance) voidsetBikeLaps(Integer bikeLaps) voidsetRunDistance(Integer runDistance) voidsetRunLaps(Integer runLaps) voidsetSwimDistance(Integer swimDistance) voidsetSwimLaps(Integer swimLaps) toString()Methods inherited from class com.endurancetrio.data.event.model.entity.Distance
getDistanceType, setDistanceTypeMethods 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
-
TriathlonDistance
public TriathlonDistance()Default constructor for theTriathlonDistanceentity.
-
-
Method Details
-
getSwimDistance
-
setSwimDistance
-
getSwimLaps
-
setSwimLaps
-
getBikeDistance
-
setBikeDistance
-
getBikeLaps
-
setBikeLaps
-
getRunDistance
-
setRunDistance
-
getRunLaps
-
setRunLaps
-
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.
-
hashCode
public int hashCode() -
toString
-