[
http://opensource.atlassian.com/projects/hibernate/browse/HV-274?page=com...
]
Gunnar Morling commented on HV-274:
-----------------------------------
I like the builder pattern approach. Sticking to the original pattern description from
Bloch all the mandatory attributes (e.g. type) should be parameters of the addConstraint()
method, otherwise users might forget to call the according method.
Maybe one could have three methods addConstraintTo{Type|ToField|ToProperty}() which would
each have the required parameters (constraint/type, constraint/type/field name,
constraint/type/property name)?
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