Make Vehicle to Driver not nullable
This commit is contained in:
parent
ea62b14596
commit
b0695e1c12
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user