Change By: Hardy Ferentschik (23/Jan/13 6:50 AM)
Description: Hibernate validator should provide something like JPA @AttributeOverride to override parent class constraints.

{code}
public class A {
    @Size(min = 1, max = 10)
    private String field1;

    @Min(2)
    private Integer field2;

    ...
}
{code}

{code}
@ConstraintOverrides({
    @ConstraintOverride(name="field1", constraint={@Size(min=4, max =20)}),
    @ConstraintOverride(name="startDate", constraint={@Min(1)})
})
public class B extends A {
    ...
}

{code}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira