package bg.car_wash.areas.car.models.bindingModel;

import bg.car_wash.areas.car.entity.CarType;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class CarBindingModel {

	@Size(min = 8, max = 10, message = "Error Car registration Number")
	private String carRegistrationNumber;

	@Size(min = 2, max = 25, message = "Error car model name")
	private String carModel;

	@Size(min = 2, max = 25, message = "Error car make")
	private String carMake;

	private CarType carType;

	public CarBindingModel() {
	}

	public String getCarRegistrationNumber() {
		return carRegistrationNumber;
	}

	public void setCarRegistrationNumber(String carRegistrationNumber) {
		this.carRegistrationNumber = carRegistrationNumber;
	}

	public String getCarModel() {
		return carModel;
	}

	public void setCarModel(String carModelName) {
		this.carModel = carModelName;
	}

	public String getCarMake() {
		return carMake;
	}

	public void setCarMake(String carMake) {
		this.carMake = carMake;
	}

	public CarType getCarType() {
		return carType;
	}

	public void setCarType(CarType carType) {
		this.carType = carType;
	}
}

@@ -89,16 +89,67 @@
 CarType;
+%0Aimport bg.car_wash.areas.customer.entity.Customer;
 %0A%0Aimport
@@ -565,16 +565,42 @@
 rType;%0A%0A
+%09private Customer owner;%0A%0A
 %09public 
@@ -1217,11 +1217,127 @@
 Type;%0A%09%7D
+%0A%0A%09public Customer getOwner() %7B%0A%09%09return owner;%0A%09%7D%0A%0A%09public void setOwner(Customer owner) %7B%0A%09%09this.owner = owner;%0A%09%7D
 %0A%7D%0A

add owner in car Binding model