[hibernate-dev] [Bean Validation] Same instance validated only once and determinism

Hardy Ferentschik hibernate at ferentschik.de
Thu Feb 19 04:52:23 EST 2009


On Wed, 18 Feb 2009 18:44:52 +0100, Emmanuel Bernard  
<emmanuel at hibernate.org> wrote:

> in the previous example, we would have two constraint violation reports:
>   - c.b is invalid
>   - d.b is invalid
>
> Can you tell me on which side you are?

I agree there is a problem. I don't like the idea of getting two  
constraint violations though.
Would it be an alternative to let ConstraintViolation.getPropertyPath()  
return an array of
path strings?

--Hardy






More information about the hibernate-dev mailing list