first implementation of iterative greedy algorithm to detect regular trips
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package SuMoC.backend.trip.models;
|
||||
|
||||
|
||||
import SuMoC.backend.trip.Modality;
|
||||
import SuMoC.backend.user.models.User;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@@ -72,6 +74,11 @@ public class Trip {
|
||||
@Column(nullable = false)
|
||||
private boolean invalidated = false;
|
||||
|
||||
@Column(nullable = false)
|
||||
@Enumerated(EnumType.STRING)
|
||||
@Schema(description = "Main modality by distance.")
|
||||
private Modality mainModality;
|
||||
|
||||
@OneToMany(mappedBy = "trip", cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
private Set<TripSegment> tripSegments = new HashSet<>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user