Class DoubleBiathlonDistance
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.DoubleBiathlonDistance
- All Implemented Interfaces:
Serializable
@Entity(name="DoubleBiathlonDistance")
public class DoubleBiathlonDistance
extends Distance
implements Serializable
The
DoubleBiathlonDistance entity extends the Distance entity and represents the
data of a Double Biathlon Course's Distance.
Besides the fields inherited from Distance, the DoubleBiathlonDistance's
fields are defined as follows:
-
firstBikeDistance: the distance, in meters, of the bike leg of theCourse. -
firstBikeLaps: the number of laps that the bike distance is divided into. -
firstRunDistance: the distance, in meters, of the first run leg of theCourse. -
firstRunLaps: the number of laps that the first run distance is divided into. -
secondBikeDistance: the distance, in meters, of the bike leg of theCourse. -
secondBikeLaps: the number of laps that the bike distance is divided into. -
secondRunDistance: the distance, in meters, of the second run leg of theCourse. -
secondRunLaps: the number of laps that the second run distance is divided into.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the entity's identifier.inthashCode()voidsetFirstBikeDistance(Integer firstBikeDistance) voidsetFirstBikeLaps(Integer firstBikeLaps) voidsetFirstRunDistance(Integer firstRunDistance) voidsetFirstRunLaps(Integer firstRunLaps) voidsetSecondBikeDistance(Integer secondBikeDistance) voidsetSecondBikeLaps(Integer secondBikeLaps) voidsetSecondRunDistance(Integer secondRunDistance) voidsetSecondRunLaps(Integer secondRunLaps) 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
-
DoubleBiathlonDistance
public DoubleBiathlonDistance()Default constructor for theDoubleBiathlonDistanceentity.
-
-
Method Details
-
getFirstBikeDistance
-
setFirstBikeDistance
-
getFirstBikeLaps
-
setFirstBikeLaps
-
getFirstRunDistance
-
setFirstRunDistance
-
getFirstRunLaps
-
setFirstRunLaps
-
getSecondBikeDistance
-
setSecondBikeDistance
-
getSecondBikeLaps
-
setSecondBikeLaps
-
getSecondRunDistance
-
setSecondRunDistance
-
getSecondRunLaps
-
setSecondRunLaps
-
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
-