this.product = null;
}
private void addValidators() {
validation.addValidator(new NotNullValidator(OrderLine.class,
"lineNumber"));
validation.addValidator(new MinValueValidator(OrderLine.class,
"lineNumber", LINENUMBER_MINVALUE));
validation.addValidator(new MaxValueValidator(OrderLine.class,
"lineNumber", LINENUMBER_MAXVALUE));
validation.addValidator(new NotNullValidator(OrderLine.class,
"quantity"));
validation.addValidator(new NotNullValidator(OrderLine.class,
"description"));
validation.addValidator(new CheckProductMinimumQuantity());
}