[
http://opensource.atlassian.com/projects/hibernate/browse/HV-274?page=com...
]
Emmanuel Bernard commented on HV-274:
-------------------------------------
{quote}
Do we want to be able to programmatically add constraint definitions? I guess so.
{quote}
What's the use case you have in mind? You can't create definitions in XML, you can
change the binding definition / validator implementation though which is a useful
feature.
{quote}
Should the programmatic API have some functionality to ignore annotations? What the
approach in HSearch in this case?
{quote}
We don't support that at the moment
Something like an ignoreAnnotation() would work at the type() and getter() level I guess.
BTW, Hibernate Search does not use field(String name) / getter(String name) but rather
does property(String name, ElementType type). Regardless of what we choose, we should
align.
Write a programmatic mapping API for constraint declarations
------------------------------------------------------------
Key: HV-274
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-274
Project: Hibernate Validator
Issue Type: New Feature
Components: engine
Affects Versions: 4.0.2.GA
Reporter: Emmanuel Bernard
Assignee: Hardy Ferentschik
Fix For: 4.1.0
--
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