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!

Larry

On Thu, 13 Jan 2005 09:36:16 -0800 (PST), <[EMAIL PROTECTED]> 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 exactly
> one row.  The <result-map> is a one to one mapping of the column name to the 
> bean fields.
> 
> I am not defining what the "null" column value should be treated as.  But 
> that is not required
> right.  Also i feel the problem is with the "int" being mapped to "NULL".
> 
> Hasn't anybody had this error?????   :-(
>

Reply via email to