Make Vehicle to Driver not nullable

This commit is contained in:
Tobias Eidelpes 2021-04-03 11:36:40 +02:00
parent ea62b14596
commit b0695e1c12

View File

@ -11,7 +11,7 @@ public class Driver extends PlatformUser implements IDriver {
@OneToMany(targetEntity = Match.class)
private Collection<IMatch> matches = new ArrayList<>();
@ManyToOne(targetEntity = Vehicle.class)
@ManyToOne(targetEntity = Vehicle.class, optional = false)
private IVehicle vehicle;
@OneToMany(targetEntity = Employment.class)