- Trips brauchten weitere Annotation um zyklische Abhängigkeit zu verhindern - Anpassen FriendCode länge und generierung
This commit is contained in:
@@ -2,6 +2,7 @@ package SuMoC.backend.trip.models;
|
||||
|
||||
|
||||
import SuMoC.backend.trip.Modality;
|
||||
import com.fasterxml.jackson.annotation.JsonBackReference;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@@ -19,6 +20,7 @@ public class TripSegment {
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "trip_id", nullable = false)
|
||||
@JsonBackReference("trip-segments")
|
||||
private Trip trip;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
|
||||
Reference in New Issue
Block a user