Change ManyToMany to OneToMany

This commit is contained in:
Tobias Eidelpes 2021-04-05 17:47:10 +02:00
parent ad0d3f3662
commit 7b2199ea99
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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