this.orders.remove(element);
}
private void addValidators() {
validation.addValidator(new NotNullValidator(Customer.class,
"customerNr"));
validation.addValidator(new MinLengthValidator(Customer.class,
"username", USERNAME_MINLENGTH));
validation.addValidator(new MaxLengthValidator(Customer.class,
"username", USERNAME_MAXLENGTH));
validation.addValidator(new RegExpValidator(Customer.class,
"emailAddress", EMAILADDRESS_REGEXP));
validation.addValidator(new NotNullValidator(Customer.class,
"discountPercentage"));
validation.addValidator(new MinValueValidator(Customer.class,
"discountPercentage", DISCOUNTPERCENTAGE_MINVALUE));
validation.addValidator(new MaxValueValidator(Customer.class,
"discountPercentage", DISCOUNTPERCENTAGE_MAXVALUE));