Change ManyToMany to OneToMany
This commit is contained in:
parent
ad0d3f3662
commit
7b2199ea99
@ -22,7 +22,7 @@ public class Driver extends PlatformUser implements IDriver {
|
||||
@ManyToOne(targetEntity = Vehicle.class, optional = false)
|
||||
private IVehicle vehicle;
|
||||
|
||||
@ManyToMany(targetEntity = Employment.class)
|
||||
@OneToMany(targetEntity = Employment.class)
|
||||
private Collection<IEmployment> employments = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
|
||||
@ -34,7 +34,7 @@ public class Organization implements IOrganization {
|
||||
inverseJoinColumns = @JoinColumn(name = I_VEHICLES))
|
||||
private Collection<IVehicle> vehicles = new ArrayList<>();
|
||||
|
||||
@ManyToMany(targetEntity = Employment.class)
|
||||
@OneToMany(targetEntity = Employment.class)
|
||||
private Collection<IEmployment> employments = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user