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

import javax.validation.constraints.Size;
import java.util.Date;

public class CustomerBindingModel {

	@Size(min = 2, max = 50, message = "This customer name is not valid!")
	private String name;

	@Size(min = 10, max = 15, message = "This phone number is not valid!")
	private String phoneNumber;

	private Date date;

	private int discount;

	public CustomerBindingModel() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public int getDiscount() {
		return discount;
	}

	public void setDiscount(int discount) {
		this.discount = discount;
	}
}

@@ -153,16 +153,35 @@
 odel %7B%0A%0A
+%09private Long id;%0A%0A
 %09@Size(m
@@ -236,32 +236,32 @@
 is not valid!%22)%0A
-
 %09private String 
@@ -487,16 +487,21 @@
 %09return 
+this.
 name;%0A%09%7D
@@ -605,16 +605,21 @@
 %09return 
+this.
 phoneNum
@@ -749,16 +749,21 @@
 %09return 
+this.
 date;%0A%09%7D
@@ -859,16 +859,21 @@
 %09return 
+this.
 discount
@@ -915,24 +915,24 @@
 discount) %7B%0A
-
 %09%09this.disco
@@ -949,11 +949,106 @@
 ount;%0A%09%7D
+%0A%0A%09public Long getId() %7B%0A%09%09return this.id;%0A%09%7D%0A%0A%09public void setId(Long id) %7B%0A%09%09this.id = id;%0A%09%7D
 %0A%7D%0A

add id field and "this."