[hibernate-issues] [Hibernate-JIRA] Commented: (BVAL-222) Add a ALL group to validate all groups instead of DEFAULT or the selected ones

Emmanuel Bernard (JIRA) noreply at atlassian.com
Sun Mar 13 17:13:08 EDT 2011


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

Emmanuel Bernard commented on BVAL-222:
---------------------------------------

potential issues:
 - breaking apps upon domain model constraint additions
 - how do it work with sequences and the rest of grouping

Should All be considered a subinterface of all possible groups?

> Add a ALL group to validate all groups instead of DEFAULT or the selected ones
> ------------------------------------------------------------------------------
>
>                 Key: BVAL-222
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-222
>             Project: Bean Validation
>          Issue Type: New Feature
>          Components: spec-general
>            Reporter: Emmanuel Bernard
>
> Gerhard
> #2 it would be nice to have #validateAll or a group called javax.validation.groups.All to validate all groups without knowing the concrete groups.
> Emmanuel
> What's the use case they were invoking? ( my favorite mantra :) )
> Gerhard
> i think it was just: if you are using groups for partial validation you might have a wizard and in every step you validate with a different group and they needed the concept instead of collecting all groups manually (e.g. in the service which finally saves the new entry) -> they requested an api for validating every constraint which is available in the given object-graph -> the service can perform a full validation before it processes the data.

-- 
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