[hibernate-issues] [Hibernate-JIRA] Commented: (HV-38) Conditional validation

Hardy Ferentschik (JIRA) noreply at atlassian.com
Tue Dec 8 17:43:08 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34899#action_34899 ] 

Hardy Ferentschik commented on HV-38:
-------------------------------------

This issue was created for the 3.x codebase. The 4.x codebase is the reference of Bean Vaidation. According to the spec there is no "apply-if" parameter for @NotNull. In fact there is no EL stuff specified at all. 

We are currently thinking about adding some Hibernate Validator specific constraint which supports scripting. However, this won't affect @NotNull.



> Conditional validation
> ----------------------
>
>                 Key: HV-38
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-38
>             Project: Hibernate Validator
>          Issue Type: Improvement
>          Components: legacy
>    Affects Versions: 3.0.0.ga
>            Reporter: Bruno Braga
>            Priority: Critical
>             Fix For: 3.2.0
>
>         Attachments: commons-jexl-1.1.jar, hibernate-validator.jar, patch.txt
>
>
> Support Conditional Validation
> Example:
> @NotNull(apply-if="some condition in el")
> I can develop this if you approve.

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