[hibernate-issues] [Hibernate-JIRA] Commented: (BVAL-38) Add built-in constraints

Hardy Ferentschik (JIRA) noreply at atlassian.com
Tue Feb 3 05:42:39 EST 2009


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

Hardy Ferentschik commented on BVAL-38:
---------------------------------------

@NotNull, @Null, @AssertFalse, @AssertTrue, @Past, @Future, @Min, @Max, @Size (String collection, arrays) are implemented

@Digits, @Like, @Contains, @Email and @URL needs implementing.

There is a existing @Pattern implementation. Maybe can be renamed to @RegExp in case we want to change the names. Why are the regular expressions a problem? 

Are these all really built-in constraints. Or are some built-in per spec and other just annotations we deliver as part of Hibernate's Bean Validation implementation?

> Add built-in constraints
> ------------------------
>
>                 Key: BVAL-38
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-38
>             Project: Bean Validation
>          Issue Type: New Feature
>          Components: ri-general, spec-general
>            Reporter: Emmanuel Bernard
>
> @NotNull
> @Null
> @AssertFalse
> @AssertTrue 
> @Digits(integer, fraction) 
> @Past
> @Future
> @Min / @Max
> @Size (String collection, arrays)
> Probably need:
>  @Like(caseSensitive, escapeChar) or @Contains(startWith, endWith, caseSentitive)
>   
>  @RegExp seems a complex problem
> Maybe @Email, @URL as they are standardized in HTML 5

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