ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <larry.mead...@gmail.com>
Subject Re: NestedSQLException
Date Thu, 13 Jan 2005 17:45:54 GMT
I'd bet money that the int properties are causing that - if you are
making int vars null, you MUST specify what the "null" column value
should be treated as, because Java cannot do that.

My guess is that it is getting a null Integer from the database, and
calling intValue() on that null, and...KABOOM!


On Thu, 13 Jan 2005 09:36:16 -0800 (PST), <prashanthsukumaran@yahoo.com> wrote:
> It is just a simple POJO.  I created it using eclipse "Generate getters and setters".
> I am pasting the bean here. I have p6spy enabled, I see that the SQL Query is returning
> one row.  The <result-map> is a one to one mapping of the column name to the bean
> I am not defining what the "null" column value should be treated as.  But that is not
> right.  Also i feel the problem is with the "int" being mapped to "NULL".
> Hasn't anybody had this error?????   :-(

View raw message