Добавлены условия запроса

This commit is contained in:
2025-04-20 16:24:51 +04:00
parent 5743d1ad47
commit fa20efb1b4
11 changed files with 48 additions and 3 deletions

View File

@@ -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;