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

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

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

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;

	private Customer owner;

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

	public Customer getOwner() {
		return owner;
	}

	public void setOwner(Customer owner) {
		this.owner = owner;
	}
}

add owner in car Binding model