All Implemented Interfaces:
Serializable

@Entity public class Route extends BaseEntity<Long>
The Route represents a route segment in the EnduranceTrio Tracker system.

The Route fields are defined as follows:

See Also:
  • Constructor Details

    • Route

      public Route()
  • Method Details

    • addSegment

      public void addSegment(RouteSegment segment)
      Utility method to add a segment to the route.
      Parameters:
      segment - the segment to add
    • removeSegment

      public void removeSegment(RouteSegment segment)
      Utility method to remove a segment from the route.
      Parameters:
      segment - the segment to remove
    • getReference

      public String getReference()
    • setReference

      public void setReference(String reference)
    • getSegments

      public List<RouteSegment> getSegments()
    • setSegments

      public void setSegments(List<RouteSegment> segments)
    • equals

      public boolean equals(Object o)
      Description copied from class: BaseEntity
      Equality 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:
      equals in class BaseEntity<Long>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseEntity<Long>
    • toString

      public String toString()
      Overrides:
      toString in class Object