[hibernate-issues] [Hibernate-JIRA] Commented: (HV-270) Verify in the annotation processor that constraints are not stupid
Kevin Pollet (JIRA)
noreply at atlassian.com
Thu Mar 17 11:15:08 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HV-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40227#action_40227 ]
Kevin Pollet commented on HV-270:
---------------------------------
The following checks should be added to the AP:
* DecimalMax, DecimalMin should have a valid BigDecimal representation
* Digits should have integer >= 0 and fraction >= 0
* Length should have min >= 0, max >= 0 and min <= max
* Pattern should have a valid regular expression
* Size should have min >=0, max >= 0 and min <= max
* ScriptAssert should have script, lang and alias with a length > 0
Maybe I've forgotten some checks, feel free to complete the list ;)
> Verify in the annotation processor that constraints are not stupid
> ------------------------------------------------------------------
>
> Key: HV-270
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-270
> Project: Hibernate Validator
> Issue Type: New Feature
> Components: annotation-processor
> Affects Versions: 4.0.2.GA
> Reporter: Emmanuel Bernard
> Fix For: 4.2.0.CR1
>
>
> For example:
> * {{@Pattern}} should have a valid regular exception
> * {{@Size}} should have min <= max
> etc
--
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