How do I get, when catching InvalidStateException, an array of ALL invalid values (i.e. ones that don't meet their constraints as defined by Hibernate Validator) on the object?
The array always seems to be no more than a length of 1, regardless of how many constraints are being violated. Why is this, and how do I fix it?
By the way, what determines the order in which values are added to the InvalidValue array? (In my case, what determines which single InvalidValue makes up the array?) Is it the order it's getter is specified in the class, random, or something else?
Thanks.
|