[hibernate-issues] [Hibernate-JIRA] Commented: (BVAL-208) @Valid should support groups attribute

Arthur Ronald F D Garcia (JIRA) noreply at atlassian.com
Fri Oct 22 12:45:48 EDT 2010


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

Arthur Ronald F D Garcia commented on BVAL-208:
-----------------------------------------------

The JSR-303 javax.validation.Valid API is clear

Mark an association as cascaded. The associated object will be validated by cascade.

When Spring uses @Valid AS A MARKER to validate its command objects, it corrupts its purpose. Spring should instead create an specific annotation in which you can supply the target group (s). My vote has been removed.



> @Valid should support groups attribute
> --------------------------------------
>
>                 Key: BVAL-208
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-208
>             Project: Bean Validation
>          Issue Type: Improvement
>    Affects Versions: 1.0 final
>            Reporter: Marc Schipperheyn
>
> The @Valid annotation should implement the group attribute in order to make validation completely annotation driven. Currently, we need to manually call the validate method on the validator if we want to validate based on groups.

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