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

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


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44133#comment-44133 ] 

Gunnar Morling commented on HV-480:
-----------------------------------

Pull request is https://github.com/hibernate/hibernate-validator/pull/72

> 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