mirror of
https://github.com/Prominence/car-repair-site.git
synced 2026-01-09 03:36:46 +03:00
Small persistence modification.
This commit is contained in:
parent
a189c79edb
commit
6402b8220d
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user