[hibernate-issues] [Hibernate-JIRA] Resolved: (HV-304) Class Validation Constraints Cause Duplicate ConstraintViolations

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Apr 8 04:22:44 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bernard resolved HV-304.
---------------------------------

    Resolution: Won't Fix

use ConstraintValidatorContext#disableDefaultConstraintViolation
Unfortunately we have not found a solution to make this method part of the natural flow. If you ahve a solution let us know.

> Class Validation Constraints Cause Duplicate ConstraintViolations
> -----------------------------------------------------------------
>
>                 Key: HV-304
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-304
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 4.1.0.Beta1
>         Environment: java 1.5.0_16-b02
>            Reporter: Marvin Addison
>            Assignee: Hardy Ferentschik
>
> When a custom constraint applied to a class is evaluated by Hibernate Validator, duplicate validation errors are produced.  My investigation points to ValidatorImpl#validateConstraint() path evaluation as the root cause.  In particular it appears that it has improper handling of constraints that have null paths, which would be the case for a constraint applied to a class.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list