Добавлены условия запроса
This commit is contained in:
@@ -10,6 +10,7 @@ import java.util.UUID;
|
||||
@Entity
|
||||
public class Car {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@Column(nullable = false)
|
||||
@@ -21,6 +22,9 @@ public class Car {
|
||||
@Column(nullable = false)
|
||||
private Integer year;
|
||||
|
||||
@OneToOne(fetch = FetchType.EAGER)
|
||||
private User user;
|
||||
|
||||
@ManyToMany(fetch = FetchType.EAGER)
|
||||
private List<Configuration> configurations;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user