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

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

public class ActivityBindingModel {

	@Size(min = 3, max = 40, message = "Invalid Activity name. (Activity name between 3 and 40 characters!")
	private String activityName;

	@Digits(integer = 2, fraction = 2)
	@DecimalMin(value = "0.00", message = "Activity price can not be negative number!")
	private BigDecimal activityPrice;

	public ActivityBindingModel() {
	}

	public String getActivityName() {
		return activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	public BigDecimal getActivityPrice() {
		return activityPrice;
	}

	public void setActivityPrice(BigDecimal activityPrice) {
		this.activityPrice = activityPrice;
	}
}

@@ -251,16 +251,35 @@
 odel %7B%0A%0A
+%09private Long id;%0A%0A
 %09@Size(m
@@ -597,24 +597,114 @@
 del() %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 Stri

add field id and getter and setter