[hibernate-issues] [Hibernate-JIRA] Commented: (HV-94) Support dynamic default group sequence definition

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Feb 7 06:10:05 EST 2011


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

Hardy Ferentschik commented on HV-94:
-------------------------------------

It really makes only sense for _validate_ (maybe _validateProperty_). 
The usecase would conditional validation based on the state of the object (see forum thread as example). 
I guess you could also use class level validators, but you could not use this with built-in constraints and you are placing the constraint on class level and not on the affected property. Using HV _ at ScriptAssert_ could maybe be used in some cases.
Introducing opens up another approach to conditional validation. Given that it is quite straight forward to add and not breaking any BV constraints it seems to be a reasonable feature to add.


> Support dynamic default group sequence definition
> -------------------------------------------------
>
>                 Key: HV-94
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-94
>             Project: Hibernate Validator
>          Issue Type: New Feature
>          Components: engine
>            Reporter: Emmanuel Bernard
>            Assignee: Hardy Ferentschik
>            Priority: Minor
>             Fix For: 4.2.0.Beta2
>
>
> Will probably not be spec'ed in the 1.0 JSR but can be added as a RI feature.

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