[hibernate-dev] [Bean Validation] @Max / @Min as double instead of long
Emmanuel Bernard
emmanuel at hibernate.org
Fri Feb 27 10:54:14 EST 2009
On Feb 27, 2009, at 15:11, Hardy Ferentschik wrote:
> On Fri, 27 Feb 2009 15:01:40 +0100, Emmanuel Bernard <emmanuel at hibernate.org
> > wrote:
>
>> values are of type long.
>> Someone asked to move to double. What do you think?
>
> Kind of makes sense, since we allow to put @Min and @max onto
> decimal fields.
> Are there any disadvantages or problems with moving to double?
>
Looks like double is a no-go
http://firstclassthoughts.co.uk/java/traps/java_double_traps.html
More information about the hibernate-dev
mailing list