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

Emmanuel Bernard emmanuel at hibernate.org
Thu Feb 19 05:38:32 EST 2009


On  Feb 19, 2009, at 10:52, Hardy Ferentschik wrote:

> 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?


That makes ConstraintViolation much harder to use.



More information about the hibernate-dev mailing list