@@ -0,0 +1,1143 @@
+package bg.car_wash.entities;%0A%0Aimport bg.car_wash.enumerations.CarType;%0A%0Aimport javax.persistence.*;%0Aimport javax.validation.constraints.Size;%0Aimport java.math.BigDecimal;%0A%0A@Entity%0A@Table(name = %22tariffs%22)%0Apublic class Tariff %7B%0A%0A%09@Id%0A%09@GeneratedValue(strategy = GenerationType.IDENTITY)%0A%09private Long id;%0A%0A%09@Column(name = %22tariff_name%22, nullable = false)%0A%09@Size(min = 3, max = 50)%0A%09private String tariffName;%0A%0A%09@Column(name = %22tariff_price%22, nullable = false)%0A%09private BigDecimal tariffPrice;%0A%0A%09@Enumerated(EnumType.STRING)%0A%09@Column(name = %22car_type%22)%0A%09@Size(min = 3, max = 15)%0A%09private CarType carType;%0A%0A%09public Tariff() %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 getTariffName() %7B%0A%09%09return tariffName;%0A%09%7D%0A%0A%09public void setTariffName(String tariffName) %7B%0A%09%09this.tariffName = tariffName;%0A%09%7D%0A%0A%09public BigDecimal getTariffPrice() %7B%0A%09%09return tariffPrice;%0A%09%7D%0A%0A%09public void setTariffPrice(BigDecimal tariffPrice) %7B%0A%09%09this.tariffPrice = tariffPrice;%0A%09%7D%0A%0A%09public CarType getCarType() %7B%0A%09%09return carType;%0A%09%7D%0A%0A%09public void setCarType(CarType carType) %7B%0A%09%09this.carType = carType;%0A%09%7D%0A%7D%0A

create tariff entity