Class SingleSportDistance
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.SingleSportDistance
- All Implemented Interfaces:
Serializable
@Entity(name="SingleSportDistance")
public class SingleSportDistance
extends Distance
implements Serializable
The
SingleSportDistance entity extends the Distance entity and represents the
data of a single Sport Course's Distance.
Besides the fields inherited from Distance, the SingleSportDistance's
fields are defined as follows:
- See Also:
-
Constructor Summary
Constructors -
Method Summary
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
-
SingleSportDistance
public SingleSportDistance()Default constructor for theSingleSportDistanceentity.
-
-
Method Details
-
getDistance
-
setDistance
-
getLaps
-
setLaps
-
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
-