]
Gunnar Morling commented on HV-480:
-----------------------------------
Provided test case at
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
Reporter: Gunnar Morling
Fix For: 4.x
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.
-
If you think it was sent incorrectly contact one of the administrators: