[hibernate-issues] [Hibernate-JIRA] Updated: (HV-51) @Past and @Future should support inclusive and exclusive boundaries
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Thu Feb 12 09:05:43 EST 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HV-51?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik updated HV-51:
--------------------------------
Component/s: legacy
Move issues into the legacy component since they are pre 3.x which is based on a different codebase
> @Past and @Future should support inclusive and exclusive boundaries
> -------------------------------------------------------------------
>
> Key: HV-51
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-51
> Project: Hibernate Validator
> Issue Type: Improvement
> Components: legacy
> Affects Versions: 3.0.0.ga
> Reporter: Dan Allen
> Attachments: FutureValidator.java, PastValidator.java
>
> Original Estimate: 2 hours
> Remaining Estimate: 2 hours
>
> The @Future and @Past annotations do not offer a way to include the current date in the range, operating under the pretense of an exclusive boundary condition. The current date is often needed in the range. For instance, a registration date can be today or any time in the future. You might have recorded an observation today or any time in the past.
> My suggestion is to add an attribute named "inclusive" which implies that the current date is included.
> @Future(inclusive = true)
> @Past(inclusive = true)
> Feel free to use another name for the attribute. The default, of course, is false for backwards compatibility.
--
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