Логика по работнику
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package org.example.domain.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
public class Car {
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
@Column(nullable = false)
|
||||
private String brand;
|
||||
|
||||
@Column(nullable = false)
|
||||
private String model;
|
||||
|
||||
@Column(nullable = false)
|
||||
private Integer year;
|
||||
|
||||
@ManyToMany(fetch = FetchType.EAGER)
|
||||
private List<Configuration> configurations;
|
||||
|
||||
@OneToMany(mappedBy = "car")
|
||||
private List<Feature> features;
|
||||
}
|
||||
Reference in New Issue
Block a user