[hibernate-issues] [Hibernate-JIRA] Commented: (HV-35) Add a "trim" attribute to @NotEmpty

Alex Savitsky (JIRA) noreply at atlassian.com
Mon Dec 24 11:28:05 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29200 ] 

Alex Savitsky commented on HV-35:
---------------------------------

"Everywhere" here means only two annotations - @NotEmpty and @Length, eveywhere else the field is either not a string, or the blank input doesn't fit the pattern. So I'll second the Mike's approach

> Add a "trim" attribute to @NotEmpty
> -----------------------------------
>
>                 Key: HV-35
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-35
>             Project: Hibernate Validator
>          Issue Type: New Feature
>          Components: validators
>    Affects Versions: 3.0.0.ga
>            Reporter: Mike Youngstrom
>             Fix For: 3.0.1
>
>
> Frequently where an empty string is invalid so would " " be invalid.  I think  trim attribute added to @NotEmpty(trim=true) would be a simple and useful addition.

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