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

Gunnar Morling (JIRA) noreply at atlassian.com
Mon Sep 26 17:14:35 EDT 2011


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

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

Post 1.1. IMO we should wait for JSR 308 instead of establishing some work-around which we couldn't remove easily later on. Generally I think the issue can be circumvented by using dedicated types (e.g. {{List<Email> mails}} instead of {{List<String> mails}}) which allows for a cascaded validation using {{@Valid}}.

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

        


More information about the hibernate-issues mailing list