[hibernate-issues] [Hibernate-JIRA] Commented: (BVAL-220) Offer stereotypes to skip validation on empty or null

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Mar 8 08:59:08 EST 2011


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

Emmanuel Bernard commented on BVAL-220:
---------------------------------------

>From Gerhard

to summarize it - we have 3 possibilities:
 1) annotating the constraint
 2) annotating the constraint-validator(s)
 3) adding new attributes to @Constraint

>From Emmanuel

I think @Contraint(ignoreNull) makes sense.
Is there a use case to diff between constraint validator implementation and thus favor option 2?

But can you define not empty? Is that hardcoded for a few types?

>From Gerhard (rephrased)
String is the one I can think of esp for JSF

>From Ed (rephrased)
3) is the best, less annotation is better to not scare people off.

> Offer stereotypes to skip validation on empty or null
> -----------------------------------------------------
>
>                 Key: BVAL-220
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-220
>             Project: Bean Validation
>          Issue Type: New Feature
>          Components: spec-general
>            Reporter: Emmanuel Bernard
>
> https://issues.apache.org/jira/browse/EXTVAL-74

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