Class RouteSegment
java.lang.Object
com.endurancetrio.data.common.model.entity.AuditableEntity
com.endurancetrio.data.common.model.entity.BaseEntity<Long>
com.endurancetrio.data.tracker.model.entity.RouteSegment
- All Implemented Interfaces:
Serializable
The
RouteSegment represents a route segment in the EnduranceTrio Tracker system.
The RouteSegment fields are defined as follows:
-
BaseEntity.getId()id : The unique identifier of theRouteSegmentthat is automatically generated and is the primary key. -
getOrder()order : The order of the segment within the route -
getStartDevice()startDevice : The starting device identifier of the segment -
getEndDevice()endDevice : The ending device identifier of the segment -
AuditableEntity.getCreatedAt()createdAt : The system timestamp of creation, inherited fromAuditableEntity. -
AuditableEntity.getUpdatedAt()updatedAt : The system timestamp of the last update, inherited fromAuditableEntity.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the entity's identifier.getOrder()inthashCode()voidsetEndDevice(String endDevice) voidvoidsetStartDevice(String startDevice) 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
-
RouteSegment
public RouteSegment()
-
-
Method Details
-
getOrder
-
setOrder
-
getStartDevice
-
setStartDevice
-
getEndDevice
-
setEndDevice
-
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
-