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 String name;
|
||||||
private Long locationId;
|
private Long locationId;
|
||||||
|
|
||||||
@ManyToMany
|
@ManyToMany(mappedBy = "stops")
|
||||||
private Collection<ITrip> trips;
|
private Collection<ITrip> trips;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -18,7 +18,7 @@ public class Trip implements ITrip {
|
|||||||
private ILocation pickup;
|
private ILocation pickup;
|
||||||
private ILocation destination;
|
private ILocation destination;
|
||||||
|
|
||||||
@ManyToMany(mappedBy = "trip")
|
@ManyToMany
|
||||||
private Collection<ILocation> stops;
|
private Collection<ILocation> stops;
|
||||||
private ITripInfo tripInfo;
|
private ITripInfo tripInfo;
|
||||||
private IMatch match;
|
private IMatch match;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user