Correctly set ManyToMany relationship

This commit is contained in:
Tobias Eidelpes 2021-03-15 15:35:41 +01:00
parent 1f5943e871
commit b97b7a5d03
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ public class Location implements ILocation {
private String name;
private Long locationId;
@ManyToMany
@ManyToMany(mappedBy = "stops")
private Collection<ITrip> trips;
@Override

View File

@ -18,7 +18,7 @@ public class Trip implements ITrip {
private ILocation pickup;
private ILocation destination;
@ManyToMany(mappedBy = "trip")
@ManyToMany
private Collection<ILocation> stops;
private ITripInfo tripInfo;
private IMatch match;