[hibernate-issues] [Hibernate-JIRA] Resolved: (HV-480) Constraints configured via XML and programmatic API aren't merged

Gunnar Morling (JIRA) noreply at atlassian.com
Sun Oct 23 06:29:22 EDT 2011


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

Gunnar Morling resolved HV-480.
-------------------------------

    Resolution: Fixed

> Constraints configured via XML and programmatic API aren't merged
> -----------------------------------------------------------------
>
>                 Key: HV-480
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-480
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: engine
>            Reporter: Gunnar Morling
>             Fix For: 4.3.0.next
>
>
> The HV reference guide says 
> {quote}
> [The programmatic] API can be used exclusively or in combination with annotations and xml. If used in combination programmatic constraints are additive to otherwise configured constraints.
> {quote}
> While that is right for constraints configured via annotations and programmatic API this does currently not work for constraints configured via XML and programmatic API. Currently a type's XML configuration has precedence over its programmatic configuration. The cause is that once the meta data for a type is added to the bean meta data cache in {{ValidatorFactoryImpl#initXmlConfiguration()}} programmatic meta data won't be added or merged in {{initProgrammaticConfiguration()}}.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list