ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: A question about nullValue in resultMap.
Date Sat, 05 Feb 2005 03:48:01 GMT
> I've never liked to use Integer. Is it really the 
> better design choice ? and why ? Is it the

Not for all situations.  But the simple fact is that a primitive
cannot represent NULL state without using a "magic number".  Magic
numbers are (to the best of my experience and education) NEVER a good
idea.  Hence, you're better off with an Integer than a "magic int".

Mime
View raw message