Small persistence modification.

This commit is contained in:
Alexey Zinchenko 2019-05-10 16:42:57 +03:00
parent a189c79edb
commit 6402b8220d

View File

@ -23,12 +23,12 @@ public class Order {
private String description;
@NotNull
@ManyToOne(fetch = FetchType.EAGER) // change to LAZY after DTO implementation
@ManyToOne(fetch = FetchType.EAGER, optional = false) // change to LAZY after DTO implementation
@JoinColumn(name = "client_id", nullable = false)
private Client client;
@NotNull
@ManyToOne(fetch = FetchType.EAGER) // change to LAZY after DTO implementation
@ManyToOne(fetch = FetchType.EAGER, optional = false) // change to LAZY after DTO implementation
@JoinColumn(name = "mechanic_id", nullable = false)
private Mechanic mechanic;