Hi all
Pardon me if this has been answered before. I could not find a solution.
I have some validations ( an example is a date range check ) on my entity.
I want to keep the validations DRY like all my other Hibernate Validator checks.
That way I can use the entity from the view layer (JSF/Seam) as well as say another data loading process that uses the entity.
Code:
private Date featureStartDate;
private Date featureEndDate;
@PreUpdate
public void preUpdate() {
// if start date > end date then
//Can I add to InvalidValues[] here?, how do I do it?
}
Thanks
Franco