[hibernate-issues] [Hibernate-JIRA] Commented: (BVAL-202) Apply constraints on the elements of an iterator

Gunnar Morling (JIRA) noreply at atlassian.com
Wed Jun 8 14:44:25 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/BVAL-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42527#action_42527 ] 

Gunnar Morling commented on BVAL-202:
-------------------------------------

That's an interesting idea. I'm wondering what the exact semantics would be for nested collections:

{code:java}
@NotNull(appliesTo = ConstraintTarget.VALUES)
private Map<String, List<String>> myMap;
{code}

I think the most elegant solution would be using JSR 308, which is targetted for JDK 8. The question is whether we want to have some preliminary solution before.

> Apply constraints on the elements of an iterator
> ------------------------------------------------
>
>                 Key: BVAL-202
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-202
>             Project: Bean Validation
>          Issue Type: New Feature
>          Components: spec-general
>            Reporter: Emmanuel Bernard
>            Assignee: Hardy Ferentschik
>
> The use case is the ability to ask a constraint to be applied, not on the annotated element itself but on the elements contained by the annotated element (typically an Iterator). Hardy and I have been discussing various options. I will list them in various comments

-- 
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list