[hibernate-issues] [Hibernate-JIRA] Updated: (HV-308) Annotation processor should consider validators registered by XML constraint mapping

Hardy Ferentschik (JIRA) noreply at atlassian.com
Tue Jan 18 07:15:05 EST 2011


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

Hardy Ferentschik updated HV-308:
---------------------------------

    Fix Version/s:     (was: 4.2.0.Beta2)
                   4.2.0.Final

> Annotation processor should consider validators registered by XML constraint mapping
> ------------------------------------------------------------------------------------
>
>                 Key: HV-308
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-308
>             Project: Hibernate Validator
>          Issue Type: Improvement
>          Components: annotation-processor
>            Reporter: Gunnar Morling
>             Fix For: 4.2.0.Final
>
>
> Background:
> The Bean Validation API allows the set of validators for a given constraint to be specified/overridden using XML constraint mapping files (http://docs.jboss.org/hibernate/stable/validator/reference/en/html_single/#d0e1957).
> Right now the annotation processor does not process any XML configuration files at all (neither validation.xml nor mapping files).
> To do:
> While it seems ok for now that the AP does not check constraint declarations given in XML (after all it's an *annotation* processor), I think it should evaluate the constraint definitions and the validators configured in XML. Otherwise the AP would raise false errors (as validators added in XML are ignored) or would give false positives (as validators given in @Constraint#validatedBy could be removed by "include-existing-validator='false'").

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