[bv-dev] Ordered Validation (practically)
Emmanuel Bernard
emmanuel at hibernate.org
Thu Jan 5 07:52:36 EST 2012
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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/attachments/20120105/87b1fb7c/attachment.html
More information about the beanvalidation-dev
mailing list