Correctly set ManyToMany relationship
This commit is contained in:
parent
1f5943e871
commit
b97b7a5d03
@ -15,7 +15,7 @@ public class Location implements ILocation {
|
||||
private String name;
|
||||
private Long locationId;
|
||||
|
||||
@ManyToMany
|
||||
@ManyToMany(mappedBy = "stops")
|
||||
private Collection<ITrip> trips;
|
||||
|
||||
@Override
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user