mirror of
https://github.com/Prominence/car-repair-site.git
synced 2026-01-09 19:56:43 +03:00
Small persistence modification.
This commit is contained in:
parent
a189c79edb
commit
6402b8220d
@ -23,12 +23,12 @@ public class Order {
|
|||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@NotNull
|
@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)
|
@JoinColumn(name = "client_id", nullable = false)
|
||||||
private Client client;
|
private Client client;
|
||||||
|
|
||||||
@NotNull
|
@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)
|
@JoinColumn(name = "mechanic_id", nullable = false)
|
||||||
private Mechanic mechanic;
|
private Mechanic mechanic;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user