[hibernate-issues] [Hibernate-JIRA] Commented: (BVAL-16) Has the property passed to validator.validateProperty() be reachable by a valid chain of validation.

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Sep 16 15:32:04 EDT 2008


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

Emmanuel Bernard commented on BVAL-16:
--------------------------------------

I believe we should mandate a correct path in the spec. But not force to raise an exception. This can be implementation specific.

> Has the property passed to validator.validateProperty() be reachable by a valid chain of validation.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: BVAL-16
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-16
>             Project: Bean Validation
>          Issue Type: Task
>          Components: ri-general, spec-general
>            Reporter: Hardy Ferentschik
>
> if you do something like this validateProperty( foo, "prop1.prop2.prop3[3]" ), does this imply that the whole chain is validated? One could just get the value/class for prop[3] and see if there are any validations defined on it or you could actually traverse the whole path and also ensure that prop1 and prop2 are annotated with @Valid.
>  
> To put it differently, has the property to validated be reachable via a valid 'validation chain'? Somehow it feels to be the right thing to do. 

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