[
http://opensource.atlassian.com/projects/hibernate/browse/HV-304?page=com...
]
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira