@@ -0,0 +1,1334 @@
+package bg.car_wash.entities;%0A%0Aimport javax.persistence.*;%0Aimport javax.validation.constraints.Max;%0Aimport javax.validation.constraints.NotNull;%0Aimport javax.validation.constraints.Size;%0Aimport java.util.Date;%0A%0A@Entity%0A@Table(name = %22cars%22)%0Apublic class Car %7B%0A%0A%09@Id%0A%09@GeneratedValue(strategy = GenerationType.IDENTITY)%0A%09private Long id;%0A%0A%09@Column(name = %22car_registration_number%22, nullable = false)%0A%09@Size(min = 8, max = 10)%0A%09private String carRegistrationNumber;%0A%0A%09@Column(name = %22car_model_name%22, nullable = false)%0A%09@Size(min = 3, max = 25)%0A%09private String carModelName;%0A%0A%09@Column(name = %22car_make%22, nullable = false)%0A%09@Size(min = 3, max = 25)%0A%09private String carMake;%0A%0A%09@ManyToOne(cascade = CascadeType.ALL)%0A%09private Customer owner;%0A%0A%09public Car() %7B%0A%09%7D%0A%0A%09public Long getId() %7B%0A%09%09return id;%0A%09%7D%0A%0A%09public void setId(Long id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%0A%09public String getCarRegistrationNumber() %7B%0A%09%09return carRegistrationNumber;%0A%09%7D%0A%0A%09public void setCarRegistrationNumber(String carRegistrationNumber) %7B%0A%09%09this.carRegistrationNumber = carRegistrationNumber;%0A%09%7D%0A%0A%09public String getCarModelName() %7B%0A%09%09return carModelName;%0A%09%7D%0A%0A%09public void setCarModelName(String carModelName) %7B%0A%09%09this.carModelName = carModelName;%0A%09%7D%0A%0A%09public String getCarMake() %7B%0A%09%09return carMake;%0A%09%7D%0A%0A%09public void setCarMake(String carMake) %7B%0A%09%09this.carMake = carMake;%0A%09%7D%0A%7D%0A

create car entity