Neither solution work, I think. The latest does not compile in Java. Your initial solution
does not accept parameters nor multiple constraints of the same type.
And neither allow for parallel reports (ie all errors of order=1) but that's a lesser
concern.
On 5 janv. 2012, at 13:14, Cemo wrote:
What about this?
@ConstraintSequence({
@NotEmpty(),
@IsValidBinCodeNumber(),
@IsCardBannedNumber(),
@IsValidCardNumber()
})
private String creditCard;
Thanks
On 5 January 2012 13:56, Cemo <cemalettin.koc(a)gmail.com> wrote:
@NotEmpty()
@IsValidBinCodeNumber()
@IsCardBannedNumber()
@IsValidCardNumber()
@ConstraintSequence(value={NotEmpty.class, IsValidBinCodeNumber
.class,IsCardBannedNumber.class, IsValidCardNumber.class}, shortCirtcuit=true)
_______________________________________________
beanvalidation-dev mailing list
beanvalidation-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/beanvalidation-dev